I have an issue in understanding the History API's state. The problem I am facing is the different behaviour between localhost
and the actual deployed application.
So after I save something in state
, and refresh the page I see two different behaviours.
- localhost keeps a copy post refresh
- production environment doesn't keep a copy after the refresh.
I have gone through the documentation,
https://developer.mozilla.org/en-US/docs/Web/API/History_API
it talks about, the state should be serializable and the max size. But my problem is I am storing exactly the same data, in both the environments, because it's the same flow of the application.
Could anyone help on this?
Aucun commentaire:
Enregistrer un commentaire