Persisting Data Across Component Unmounts with `rx` and `rx-react`
This is probably a dumb question, but with
Currently my data fetching is working fine, but it's re-fetching everytime I change my pages, so a bit meh.
I even tried with something like:
But even with that it seems to reset
Though I am neither sure about the syntax, nor the actual way of articulating what I want to achieve.
But I am pretty sure it's feasible without needing React Context, or am I wrong ?
rx & rx-react ; is there a way to persist the loaded data when the component unmounts, so that when the user gets back to the same component it does not need to re-request the data ?Currently my data fetching is working fine, but it's re-fetching everytime I change my pages, so a bit meh.
I even tried with something like:
But even with that it seems to reset
persistedCustomers back to [] on component refresh Though I am neither sure about the syntax, nor the actual way of articulating what I want to achieve.
But I am pretty sure it's feasible without needing React Context, or am I wrong ?
