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
Hello,
my question is, if it would be possible that the state (and rendering) of a component is updated when the user navigates through his browser history.
I have used LocationUpdate to "store" variables within the browser URL and I expect the component to display as it was before, when I click the "back"-Button of the browser.
As investigated in #422 the URL changes correctly, but the pages content stays the same and does not update accordingly.
From my point of view, that is not working as expected.
I read this thread and came to a workaround by adding an JS event listener and calling an action method of my component that parses the manually transmitted url of the history and sets the components variables to their previous values (as defined in the history's URL):
Hello,
my question is, if it would be possible that the state (and rendering) of a component is updated when the user navigates through his browser history.
I have used LocationUpdate to "store" variables within the browser URL and I expect the component to display as it was before, when I click the "back"-Button of the browser.
As investigated in #422 the URL changes correctly, but the pages content stays the same and does not update accordingly.
From my point of view, that is not working as expected.
I read this thread and came to a workaround by adding an JS event listener and calling an action method of my component that parses the manually transmitted url of the history and sets the components variables to their previous values (as defined in the history's URL):
I am pretty sure, that there might be a more general and nicer way to integrate it into your code.
The text was updated successfully, but these errors were encountered: