Events can be maps. Coming soon. Any thoughts? https://github.com/day8/re-frame/issues/644
Is it important to distinguish between ::rf/eid
and ::rf/qid
?
Since maps with those in it are used with different fns, would ::rf/id
work for both?
Currently you can't visually tell an event vector from a subscription vector (other than by adopting naming conventions for subs and events, which is what I'm currently doing).
Using eid
and qid
makes it clear what a map is supposed to be used for. However, is that important?
Other variants: :re-frame.subs/id
and re-frame.events/id
?
I have a weird bug in that when I clear the subscription-cache and call my render function anew not everything re-renders. It worked for most of last month. Anybody have a hunch what may be going wrong?
Also it seems to happen almost exclusively to views that contain forms. 😄 That is certainly a strange one
Oh, found the culprit, its not re-frame
. (For those interested: Every component that is called as a view in reitit does nor re-render on a combo of rf/clear-subscription-cache!
and reagent.dom/render
. But all other components do just fine. Intermediate fix is to not have any code except for calling other components in reitit-routes)