-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subscriptions are lost during HMR #991
Comments
Maybe this can be fixed but it does require some extra logic because any subscription that happens inside a plugin should not be transferred. There could be other cases of subscriptions that should not be transferred to avoid duplication. Or maybe there is even a better solution within |
@posva what do you mean by "any subscription that happens inside a plugin should not be transferred" here? I'm also running into this problem when trying to develop a plugin locally. The plugin only receives the |
Additionally, it looks like this problem goes away when using |
Passing |
thanks |
I have some code like this , it could output correctly when app first loaded or refresh ,but don‘t work after HMR.
I have add some breakpoints in Pinia.js ,and found that
subscriptions
is emty [] after HMR.The text was updated successfully, but these errors were encountered: