So … I have a pretty big subscription in my app. It does not have to be reactive (of course it would be nice if it still was), as the data behind it usually only changes approx once per day.
What I would like to do is basically only subscribe once in one of my “parent components” (my frontend is React) and then only use it on the client.
As the data will be quite big, I do not want to cancel the subscription on route change, but keep it in memory/cache all the time. My question is: What is the best way to approach this?
- Subscribe in my
<App/>component. Problem: This component also re-renders from time to time - Subscription will be lost and refetched again and again right? Is there a way to not cancel it?
- Use a
methodto receive the data and then use something like zangodb on the client to work with the data.
- no more ideas
What are your ideas on this?