mercredi 24 juillet 2019

History API's state does not persist in deployed application

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.

  1. localhost keeps a copy post refresh
  2. 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