I'm using window.history
in JavascriptMVC application to enable back/forward/refresh functionality for each controller. Every time I load a new controller I'm using window.history.pushState
to add a new state to history. And then on back/refresh I'm using the saved state and reuse the data to build the controller again.
The whole idea works fine excepting one issue on specific scenario. I'm getting the following error:
Failed to execute 'pushState' on 'History': An object could not be cloned.
The same data is added without problem on other scenario. What can cause this error? Thanks for the assistance.