omcljs / om

ClojureScript interface to Facebook's React
6.66k stars 363 forks source link

Ref cursors don't work when there's no om/root on the root atom #864

Open FreekPaans opened 7 years ago

FreekPaans commented 7 years ago

It seems ref cursors don't get updates when there is not at least one component that uses the app-state atom as value in an om/root call. Is this expected behavior?

Created a minimum case repro here: https://github.com/FreekPaans/om-ref-cursor-repro/blob/master/src/om_ref_cursor/core.cljs.