Open visitsb opened 2 years ago
Name | Link |
---|---|
Latest commit | 27c8ca744e3597866253b800e312973229b72665 |
Latest deploy log | https://app.netlify.com/sites/vuex-docs/deploys/624eb11565972600082f9a47 |
Deploy Preview | https://deploy-preview-2149--vuex-docs.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
@yyx990803 , @ktsn , @kiaking I understand Vuex is now in maintenance, and recommending Pinia.
Since this PR doesn't look like going to merge into Vuex anytime soon, I have gone ahead and publish a fork under @visitsb/vuex so that non-Vue.js applications such as React, ReactJS and React Native can use Vuex.
Using Vuex outside of Vue projects looks possible with a few simple changes. Vuex works independently only using few imports from
@vue/reactivity
and@vue/runtime-core
. Switching these to pure imports removes the need to import them through Vue.@yyx990803, @ktsn, @kiaking - I have managed to use Vuex store successfully in a react-native project after making these changes. The best part is it works according to Vuex documentation.
It will great if these changes make it to mainline branch. Love to use Vuex over other state management libraries in React ecosystem.