pinia
pinia copied to clipboard
fix: install devtools plugin only after app is created and installed (#1063)
Closes https://github.com/vuejs/pinia/issues/1063
Turned out in nuxt plugin environment, pinia._a
is not yet defined which resulted in devtools unable to find app record.
Deploy Preview for pinia-official canceled.
Name | Link |
---|---|
Latest commit | 9ea96a4cef2d9fb38d5656b4fc534eb8141a6996 |
Latest deploy log | https://app.netlify.com/sites/pinia-official/deploys/62b767aeaee0a700094b0c47 |
Thanks for the PR but this completely changes the behavior of plugins. The fix should be possible with minimal changes and without changing how stores are initialized
OK, I ended up applying same logic to devtools plugin only. Tests checked.
@posva Hi Eduardo, is it OK now?