Results 20 comments of allen

In some special cases,it is necessary to keep state subscriptions after the component is unmounted. So I think it's necessary to expose this configuration item. [Document: pinia](https://pinia.vuejs.org/api/interfaces/pinia._StoreWithState.html#subscribe)

In some special cases,it is necessary to keep state subscriptions after the component is unmounted. So I think it's necessary to expose this configuration item. [Document: pinia](https://pinia.vuejs.org/api/interfaces/pinia._StoreWithState.html#subscribe)

I guess you encountered this problem when using uniApp. I had the same problem before and created [pinia-plugin-persist-uni](https://github.com/Allen-1998/pinia-plugin-persist-uni) based on this project to solve the problem. It seems that your...

I guess you encountered this problem when using uniApp. I had the same problem before and created [pinia-plugin-persist-uni](https://github.com/Allen-1998/pinia-plugin-persist-uni) based on this project to solve the problem. It seems that your...

maybe about this https://github.com/Seb-L/pinia-plugin-persist/pull/39

> Are you clearing the Storage without using the store ? maybe about this @Seb-L https://github.com/Seb-L/pinia-plugin-persist/pull/39

> Hi,I implemented ts version based on your idea.And publish it as a Vite plugin.I used it in one of my projects and it worked fine and looked fine.It's easy...

@LuckyRyan-web 可以看看这个 [docs: vite](https://vitejs.dev/guide/api-plugin.html#plugin-ordering) 之所以使用 AutoImport 后就会有问题,是因为 [unplugin-auto-import 的 enforce 为 post](https://github.com/antfu/unplugin-auto-import/blob/HEAD/src/core/unplugin.ts#L9) ,会最后才执行,导致通过 AutoImport 的注入的代码没有被此插件转换 问题定位到,解决方式其实就很简单了,只要让 vite-plugin-cdn-import 在最后执行就可以 然后我查看了此项目的源码,看到是通过合并用户配置项修改了 rollupOptions 来实现的,关于如何修改 rollup plugins 的执行时机vite也有相关的[文档](https://vitejs.dev/guide/api-plugin.html#rollup-plugin-compatibility),但是我暂时还不清楚在此项目中应该如何进行修改,可以给我一些 指引/规范 吗,我将很乐意为此贡献一个pr

我在我的一个模版仓库的[test/cdn1](https://github.com/ttk-cli/vue3-template/tree/test/cdn1)分支中,基于 rollup-plugin-external-globals 和 vite-plugin-html 实现了同样的功能,可以参考一下