Skip to content
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

fix(devtools-kit): dynamically register setupFn of plugins #247

Merged

Conversation

Azurewarth0920
Copy link
Collaborator

fix: #246

As described in the issue, the plugin registration only called on initiation.
The lazy-loaded modules (eg. pinia) will not be registered when loaded, reproduced in #246,

Watch on the pluginBuffer, when a new plugin descriptor and setupFn are added, register the plugin.


#246 (comment)
The cause of this behavior is when we import useAppStore in App.vue, the plugin descriptor and the setupFn will be pushed into pluginBuffer before initiation. So the plugin can be correctly activated.

Copy link

netlify bot commented Feb 25, 2024

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 6f9a2fb
🔍 Latest deploy log https://app.netlify.com/sites/vue-devtools-docs/deploys/65dc527a82e2ae0008627f2c

@Azurewarth0920 Azurewarth0920 marked this pull request as draft February 25, 2024 08:51
@Azurewarth0920 Azurewarth0920 force-pushed the fix/reregister-on-pinia-module-loaded branch from 81c7150 to f6401c1 Compare February 25, 2024 09:42
@Azurewarth0920 Azurewarth0920 marked this pull request as ready for review February 25, 2024 09:45
@Azurewarth0920 Azurewarth0920 changed the title fix(devtool-key): dynamically register setupFn of plugins fix(devtool-kit): dynamically register setupFn of plugins Feb 25, 2024
@webfansplz webfansplz changed the title fix(devtool-kit): dynamically register setupFn of plugins fix(devtools-kit): dynamically register setupFn of plugins Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug: client]: The status of lazy-loaded pinia module cannot be edited.
2 participants