Fork me on GitHub
#re-frame
<
2016-04-05
>
pastafari13:04:41

I’m looking for a graphs and charts lib that plays well with re-frame. Any recommendations?

comamitc16:04:21

Any suggested patterns for fetching data from the server and attaching to the app-db on page load? The initialize-db in the template generator is a synchronous function, so I don’t want to block page load when fetching some of the data.

pastafari16:04:03

@comamitc: in my initialize-db handler i (dispatch :load-data) and return some initial state (optionally from local state). Then handle :load-data with this pattern: https://github.com/Day8/re-frame/wiki/Talking-To-Servers

pastafari16:04:37

@comamitc: i also set a loading flag to display a spinner or some such.

comamitc16:04:45

ahh, the subsequent dispatches are asynchronous?

pastafari16:04:52

dispatch is async

pastafari16:04:56

dispatch-sync is not

pepe17:04:48

@ckarlsen: have you used Victory with re-agent? It looks very nice 😉

ckarlsen17:04:35

yes, works nicely with reagent