This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-23
Channels
- # aws-lambda (1)
- # beginners (11)
- # boot (456)
- # cider (3)
- # cljsrn (7)
- # clojure (340)
- # clojure-berlin (6)
- # clojure-dev (207)
- # clojure-germany (12)
- # clojure-greece (3)
- # clojure-italy (3)
- # clojure-russia (12)
- # clojure-spec (42)
- # clojure-uk (29)
- # clojured (7)
- # clojurescript (125)
- # datascript (1)
- # datomic (47)
- # defnpodcast (4)
- # emacs (30)
- # events (7)
- # hoplon (13)
- # instaparse (64)
- # jobs (13)
- # jobs-discuss (1)
- # lein-figwheel (1)
- # leiningen (10)
- # luminus (1)
- # lumo (14)
- # off-topic (10)
- # om (16)
- # om-next (3)
- # onyx (1)
- # pedestal (3)
- # protorepl (5)
- # re-frame (17)
- # reagent (66)
- # ring (1)
- # ring-swagger (13)
- # spacemacs (12)
- # specter (4)
- # untangled (272)
- # vim (4)
- # yada (24)
This is probably an easy question: What's the best way to say "all components on the page should refresh their queries"?
(I have a background timer on my page, and every few minutes it'll run an auto-refresh in case another web user changed something that impacts the views for the current user)
@drcode just try (om/transact! this [])
feels less hacky
@anmonteiro On root? I'll try it, thanks!
@drcode either that or on reconciler
keep in mind you can always transact!
just a read
so like (om/transact! reconciler [:my-root-prop])
will re-render the whole tree
@anmonteiro Right, but I was thinking the read statement would need to be really complex, but of course as you point out it doesn't because Om automatically refreshes the current component and its children.
https://github.com/untangled-web/untangled-devguide/blob/master/src/devguide/untangled_devguide/B_UI_Exercises.cljs#L222 <-- how do I solve this? I know that "om-computed" is the correct way, but I want ot learn the hackish way first too
Has anyone tried using the new React Navigation (https://reactnavigation.org/) with om.next?
Is there an idiomatic pattern in om.next for rendering from two idents? I basically want my component to trigger render
any time a specific child ident changes.