This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-15
Channels
- # adventofcode (121)
- # bangalore-clj (5)
- # beginners (46)
- # boot-dev (9)
- # cider (20)
- # cljs-dev (7)
- # cljsrn (1)
- # clojure (341)
- # clojure-austin (7)
- # clojure-greece (144)
- # clojure-india (3)
- # clojure-italy (5)
- # clojure-spain (1)
- # clojure-spec (34)
- # clojure-sweden (3)
- # clojure-uk (90)
- # clojurescript (24)
- # core-async (1)
- # core-logic (7)
- # cursive (108)
- # datascript (2)
- # datomic (39)
- # events (1)
- # fulcro (225)
- # graphql (8)
- # hoplon (86)
- # instaparse (12)
- # jobs-discuss (2)
- # jvm (4)
- # keechma (1)
- # lein-figwheel (2)
- # leiningen (12)
- # off-topic (26)
- # onyx (35)
- # other-languages (1)
- # pedestal (3)
- # planck (11)
- # re-frame (12)
- # reagent (12)
- # reitit (5)
- # spacemacs (48)
- # specter (29)
- # sql (2)
- # test-check (1)
- # unrepl (71)
I need to re-render (re-create) it because it's iframe and I want to delete some variables/listeners etc in it
re-render is not re-create, at least to me: on a form-2 component, re-creating would execute the outer body, re-rendering wouldn't
regarding the question, https://github.com/reagent-project/reagent/issues/123
since you don't want to change the props (although you could simply pass a counter and increment it when you want to rerender), you can dereference a ratom for the only purpose of rerendering
I tried counter, but nothing happened https://gist.github.com/anonymous/89f46e55b02d335a43dfc083f531eff6
It seems it applies only differences from prev/next dom trees, but not re-render the whole component
@ilevd you can also give the component a :key
and change the :key
- react will treat it as a new component
thank you mccraigmccraig, the technique is now part of https://github.com/Day8/re-frame/wiki/More-advanced-Reagent-techniques
@mccraigmccraig thank you, it's what I need
can anyone point me to some up to date information around dynamic subs? I found this https://github.com/Day8/re-frame/wiki/Dynamic-Subscriptions but can’t find what the most recent approach is