Fork me on GitHub
#fulcro
<
2022-11-11
>
cjsauer19:11:00

When I use a constant ident like :ident (fn [] [:singleton/id :my-singleton]), do I also need to set that id in the initial state? I noticed in the fulcro app db that :singleton/id is not actually present in that component's props map. I have to do this: :initial-state (fn [_] {:singleton/id :my-singleton}) Is this expected? I can't find anywhere in the dev guide that does this. Mostly I just see :initial-state {} , which also results in an empty props map (obviously).

tony.kay21:11:44

No... But you do need at least an empty initial state