Closed mcdyzg closed 7 years ago
I may be confusing something, but I don't see why you would expect it to run init
again.
init
is what is called upon creation of the store. Basically like a constructor. At no point in that code is there anything that would destroy the store and then create it again.
I have two pages: 1.PageOne 2.PageTwo,when i switch to pagetwo from pageone, and then switch back, i found that my PageOne's store doesn't run init().
Here is my code:
app.js:
store.js(PageOne):
action.js(PageOne):
scene
open localhost:8081/#/ first time
open localhost:8081/#/pageTwo
open localhost:8081/#/ second time
it seems like when switch back to #/, pageOne's store did not run init().
Help me please.