-
Notifications
You must be signed in to change notification settings - Fork 479
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
如何多个页面共享一个store使用 #142
Comments
目前解决方案 ,可以实现多个页面绑定同一store,暂不清楚有什么弊端
|
1.你可以先new 出来再import到 各个store 2.westore 没有斩断 store 之间的通讯吧,这个可以开发者自己组织依赖关系、发布订阅什么的。 model之间可以多对多互相依赖,store之间可以多对多互相依赖,model和store之间可以多对多互相依赖。 westore只是斩断model和view之间的依赖。 |
请问官方能出多个页面共享一个 store 例子吗?现在官方的 example 只是在一个页面中用到 store,这样的 store 抽离在单个页面中使用感觉是非必须的。 所以冒昧问一下,官方是否有计划出品类似 pinia , vuex 这类全局状态管理库,方便使用原生小程序的开发者使用。🌹🌹 |
请问一下“多页面共享用户信息,共享购物车数量”等需求的话目前您的解决方案用的是什么呢? |
目前尝试了bind相同的viewkey,不行。请问有什么方式能跨页面使用吗
The text was updated successfully, but these errors were encountered: