This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-13
Channels
- # admin-announcements (1)
- # beginners (10)
- # boot (15)
- # cider (9)
- # clara (195)
- # cljsrn (24)
- # clojars (20)
- # clojure (46)
- # clojure-android (1)
- # clojure-germany (15)
- # clojure-greece (16)
- # clojure-nl (1)
- # clojure-russia (13)
- # clojure-spec (28)
- # clojure-uk (44)
- # clojurescript (104)
- # clojurex (1)
- # component (7)
- # css (2)
- # cursive (27)
- # datomic (92)
- # dirac (12)
- # emacs (5)
- # lambdaisland (3)
- # lein-figwheel (36)
- # mount (87)
- # off-topic (8)
- # om (102)
- # om-next (3)
- # onyx (30)
- # pedestal (3)
- # re-frame (26)
- # reagent (20)
- # robots (4)
- # specter (18)
- # spirituality-ethics (1)
- # untangled (127)
- # yada (11)
@rui.yang: re-com was written with re-frame in mind, and by the same people
That’s a good starting place. There are other reagent form libraries, but I don’t have much experience with them
I was under the impression that child subscriptions did not re-run if the parent returned the same value, but that’s not what I’m seeing in my app. Any time a parent subscription runs, I’m seeing all dependent subscriptions run again. Am I missing something? I tried upgrading to Reagent 0.6.0-rc1 (thinking the switch from identical?
to =
might be the problem), but the behavior is still the same.
ah, never mind. I just setup a contrived example to show it and I can’t reproduce it. I must be doing something wrong in my app.
I think I found my problem. So if I have two separate components that are subscribed to the same subscription, the subscription will run twice? Is there any way to cache the result from the first subscription run and just send the value to all other subscribers?
@seantempesta: Yep, it’s in master, but not in a released version of re-frame. https://github.com/Day8/re-frame/pull/124
@danielcompton: oh cool! I’ll check it out.
@rnandan273: feel free to ask about re-frame and datascript here
thanks @danielcompton , did not know there was a channel for re-frame
there’s a channel for everything here 🙂
community is good , but jobs are scarce:worried:
its difficult to convince people that more can be done with less code
Has anybody used alandipart's local storage library as a backing db in re-frame?
I am trying to use alandipart's local storage library as a backing db in re-frame, but the reactions don't seem to get triggered
@rnandan273: do you see the updates if you evaluate @(re-frame.core/subscribe [:my-sub])
?
@rnandan273: have you followed https://github.com/reagent-project/reagent-cookbook/tree/master/recipes/local-storage ?
Thanks @danielcompton I got the local storage model working, I am saving and loading from local storage on demand and running the event flow from the in-memory hash map i.e the default behaviour
So it's working?
I'm trying to pass a param from the url that launches the re-com/re-frame SPA into the App (app.js). Is this possible?
you can print it into EDN as a string, store in a js variable and then read it with clojurescript
or convert it into JSON (if possible), assign it into a js var and then use it directly in JS