Re-resolve state in navigation history


#1

Hi, is there any obvious way that I’m missing to re-resolve a states resolved data when going back in the navigation history?

When I go through the steps of resolving from locally stored data then refreshing from a web service, the resolved when I go back to this state via navigation history is the original locally stored data and not the updated locally stored data from the web service call.

Any ideas how I can force a re-resolve of the state?

Cheers in advance,
Ross


#2

Store the values in another variable/service before you overwrite them?

if you go back you can use ui-router statechange events to get the befor- and the toState. (to know which data should be reresolved)