Fork me on GitHub
#re-frame
<
2016-10-05
>
danielcompton01:10:54

@johanatan using reg-event-fx (and similar) would 'define' the keyword in Cursive. Cursive has pretty sophisticated static analysis already

deas14:10:11

😢

deas14:10:28

event handler updates db (that works), but subscription function does not kick in. Any idea what I might be missing?

shaun-mahood14:10:13

@deas: can you post your subscription code?

andre14:10:00

and how do you understand that it doesn't kicked in?

deas14:10:41

@andre @shaun-mahood It works now. Guess I was a little ignorant about changes introduced with 0.8. Thanks guys.

andre14:10:48

@shaun-mahood hi, i've fixed your issue, thanks for it, did try a fix?

shaun-mahood14:10:06

@andre: Just got in to work, going to give it a try right away.

shaun-mahood14:10:48

@deas: Great, glad you got it working.

shaun-mahood15:10:23

@andre: The fix worked, thanks a lot!

shaun-mahood15:10:19

@andre: Also, I'm probably going to work on a PR for https://github.com/Odinodin/data-frisk-reagent/issues/11 - if you have any thoughts just let me know, since I want it to feed nicely into re-frisk

johanatan17:10:18

Should the following code register for all changes to app-db?

(re-frame/register-sub :all-changes (fn [db] (reaction @db)))

shaun-mahood17:10:48

@johanatan: Not sure on register-sub usage, but this works so it should just be a matter of translating it

(re-frame/reg-sub
  :all-changes
  (fn [db _]
    db))

shaun-mahood17:10:22

Are you targeting pre-0.8?

johanatan17:10:59

Yes, this is 0.7

johanatan17:10:14

Oops, sorry. Was not registering on the listening end properly

lxsameer18:10:43

what is the best practice for using a jquery plugin in re-frame ?

shaun-mahood18:10:02

There may also be a reagent or react library that does something similar to your jquery plugin

superstructor22:10:12

interested in how others are handling loading state in http or server fx interactions; e.g. displaying loading indicators ? do you simply store a true/false :loading? key somewhere in the db ? obviously that doesn’t work well for multiple concurrent requests ?