Fork me on GitHub
#re-frame
<
2016-09-22
>
kalouantonis07:09:03

Most of my apps components use core.async for non-ui stuff (E.g. the USB interface, NodeJS IO) and it does the job great. How do you build your decoupled libraries that do a bunch of async stuff? Do you just use callbacks (like cljs-ajax) and then dispatch on them?

danielcompton07:09:25

Nothing wrong with that if it works for you, just that you can go a long way without core async

kalouantonis13:09:33

Another question, can I use async code in coeffects, or is that not really the purpose?

mac15:09:53

What is the idiomatic way of making handlers change their behaviour in response to events and/or over (wall clock) time? clear-handlers and register a new one?

kamn15:09:28

Has anyone used Horizon with re-frame?

mccraigmccraig18:09:52

@kalouantonis: promise monads work great for us for async

jvuillermet19:09:46

Hello, I'm trying to add some spec on my project like in the todomvc reframe example. I don't know how to deal with namespace-qualified keywords and I don't understand how the new todos are valid where as my code complains about key beeing not present because I use non namespace-qualified keyword everywhere

cdine20:09:03

Is there a way to get the current state of the db, but outside a component & outside handler/subs..? I realize that the question is probably silly, but assume that its required for some valid introspective reasons.. 🙂

superstructor20:09:47

@cdine @re-frame.db/app-db ? not for use in code, only for debugging/REPL.

superstructor20:09:28

@cdine There is a comment in that file:

;; Should not be accessed directly by application code.
;; Read access goes through subscriptions.
;; Updates via event handlers.

cdine20:09:42

That helps... thanks

danielcompton21:09:13

@cdine not a silly question at all, I often do this at a REPL

cdine21:09:59

@danielcompton that makes me feel better..

superstructor21:09:33

yep often do it in a REPL just recommend not putting this into application code :thumbsup: @cdine @danielcompton

superstructor22:09:03

I just noticed this file in the docs too which looks interesting, I didn’t know it existed either until just now 🙂 https://github.com/Day8/re-frame/blob/master/docs/FAQs/Inspecting-app-db.md @cdine @danielcompton

cdine22:09:53

Embarrassing that I've missed this FAQ section.. 😞

stuartmitchell22:09:26

@andre have you released re-frisk yet I would like to try it out

superstructor22:09:33

I think its very new, I missed it too @cdine