Fork me on GitHub
#re-frame
<
2017-02-28
>
gklijs07:02:47

Tried quil, and got it a bit working, but it doesn’t seem to play nice with re-frame. Maybe I’m doing things wrong but he is redrawing the whole canvas each time, which I think is not effective. Also I don’t like I need to add the canvas tag to the html. As the canvas is only used for one or two views. But maybe there is some way around it. Basically what I want is a simple way to create a function to add, and update a canvas, which I can subscribe to some element in the state.

miikka13:02:58

What's re-frame 0.9.2? I see there's a tag on GitHub and a JAR on Clojars, but there aren't any release notes

danielcompton21:02:27

I've added a release note in now: https://github.com/Day8/re-frame/releases/tag/v0.9.2. Sorry about the confusion

joshkh15:02:51

does this sound crazy? i'd like to create an fx that dispatches a collection of events, but i'd like to mute the signal graph until all events are dispatched.

joshkh15:02:41

my use case is that i have a single event to add a view to a query. somewhere else i'd like to add a handful of views. the easiest way would be to map the add-single-view dispatch event over the collection but that's not very efficient and not also not very undo compatible.

josh.freckleton20:02:22

what work do you accomplish in the db namespace (ie re-frame template)? I mean, I understand that's where the one-source-of-truth lives, but, do you write much code in there?

mikethompson21:02:18

@josh.freckleton have a look at todomvc example

mikethompson21:02:35

db.cljs normally has a schema (at least)

mikethompson21:02:39

But there's other data related stuff which can go in there, like LocalStore access, etc

borkdude21:02:52

We also put the initial state of the database there

josh.freckleton21:02:32

nice, so it looks like an initial schema, some specs, utility functions... great thanks!