Fork me on GitHub
#reagent
<
2018-05-17
>
keymone13:05:17

hey, i made a new reagent project without figwheel and then tried adding it manually. i hit an issue where figwheel would reload the code but reagent components wouldn’t update, reagent/force-update-all wasn’t helping.

keymone13:05:13

adding a call to reagent/render in reload hook helped probably because (reagent/render [root] (.getElementById js/document "app")) <- value of root at page init doesn’t change after figwheel reload

keymone13:05:41

is there a better way to deal with this other than calling reagent/render on reload? is there any cleanup i should be doing, like unmounting or something?

pesterhazy15:05:30

@keymone usually no cleanup is necessary

pesterhazy15:05:44

calling "render" again is the correct way to force a rerender