You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still following the Blazor web tutorials (done the second one now), and I've noticed that when you click away from the counter page and then click back, the counter state is preserved, so if I click the button to increase the counter a few times, go to another page and come back, the number is the same as it was before, not reset to zero.
However, if I do the same with the fetch data page, the weather forecasts are reloaded. I noticed this as I was looking at what the IsLoading property was doing, and added a delay when loading the weather data. This allowed me to see the "Loading..." message, but also clarified that the data was reloaded every time I went back to the page.
How do I make it so that the weather data is also saved in the store and not reloaded? Thanks
The text was updated successfully, but these errors were encountered:
I think I was assuming there was something in the flux pipeline that would take care of this, as opposed to having logic in the razor view (which this pattern seems to minimise).
Still following the Blazor web tutorials (done the second one now), and I've noticed that when you click away from the counter page and then click back, the counter state is preserved, so if I click the button to increase the counter a few times, go to another page and come back, the number is the same as it was before, not reset to zero.
However, if I do the same with the fetch data page, the weather forecasts are reloaded. I noticed this as I was looking at what the IsLoading property was doing, and added a delay when loading the weather data. This allowed me to see the "Loading..." message, but also clarified that the data was reloaded every time I went back to the page.
How do I make it so that the weather data is also saved in the store and not reloaded? Thanks
The text was updated successfully, but these errors were encountered: