Fork me on GitHub
#re-frame
<
2023-05-14
>
Ryan18:05:54

General direction question: Where is best to determine if I need to fetch data? app is complex, and a decent chance as user hops around an entity they need from server is already loaded (mostly for static things like dropdown lists that we can safely re-use after initial fetching.. is checking the size of the de-ref’d sub in the rendering function and dispatching a fetch a cardinal sin? should I try and get that logic into my ::set-page event?

p-himik18:05:05

Yes, fetching should be initiated by events.

👍 2