-
Notifications
You must be signed in to change notification settings - Fork 375
#166 Add rehydrated callback #207
Conversation
Thanks for the PR. Could you remove the changes you've done by "fixing" prettier? Now it's quite hard to see the actual change you've made with all the indentation changes. The prettier config was just fine, nothing needed to be changed there. |
This reverts commit 063fbd4.
Could you please elaborate the purpose of the callback? And the option is also missing in the README. |
The thing I am trying to achieve here is mainly targeted to Nuxt.js users. Since Nuxt.js users would have to implement Therefore, if one wishes to access data that is stored in Vuex during the By providing a I hope that I have explained my motive to implement this. I will make changes to the README file later. |
Signed-off-by: Nelson Liu <[email protected]>
@nelsliu9121 |
Awesome! I'd like to see this merged. |
Another usecase is when using navigation guards for authentication and redirection in Vue. The beforeEnter guards need a way to know when rehydration is finished so it knows when it's safe to check. |
Any reason this hasn't been merged in yet? |
I also need this functionality to be able to use this package. |
@nelsliu9121 thanks for your work! |
This PR adds
rehydrated
callback afterstore.replaceState
has been called.P.S. Why does it seem like nobody actually uses prettier to format the code?