I am using VueJs with vuex.
When I click back button of browser, I want to reset the data of state on previous link.
I appreciate if you give me some example.
Thank you so much.
Asked
Active
Viewed 1,704 times
1

DD DD
- 1,148
- 1
- 10
- 33
-
Possible duplicate of [How to Detect Browser Back Button event - Cross Browser](https://stackoverflow.com/questions/25806608/how-to-detect-browser-back-button-event-cross-browser) – Estradiaz Jul 22 '19 at 08:04
-
I asked at Vue. So it is different thing. I guess. – DD DD Jul 22 '19 at 08:10
-
Plus, I asked about reset of state of Vuejs. – DD DD Jul 22 '19 at 08:12
-
Oh - but still answered: https://stackoverflow.com/questions/42295340/how-to-clear-state-in-vuex-store – Estradiaz Jul 22 '19 at 08:16
1 Answers
0
According to Going back to States like Undo Redo on Vue.js vuex Create A Vuex Undo/Redo Plugin For VueJS

hossein vatankhah
- 204
- 1
- 9