Fork me on GitHub
#rum
<
2018-06-25
>
mattly18:06:43

is there any non-hacky way to preserve component state (`defcs`) across figwheel reloads?

roman01la19:06:47

You can try to store state value in a global atom (defined via defonce) on :will-unmount and restore it on :will-mount

roman01la19:06:05

Not sure how to distinct between instances of a component. Maybe rendering order would work, but only as long as you don’t change it

mattly20:06:40

yeah, that's sorta what I figured. thanks!