@onpr/vue-redux

provideStore(store) - provide redux store - useStore() - inject provided store - useDispatch() - inject dispatch method of injected store - useSelector(selector, compare?) - select state (check react-redux) - createHooks() - create namespaced hooks (or for typing) - mixin - Mixin from options

Usage no npm install needed!

<script type="module">
  import onprVueRedux from 'https://cdn.skypack.dev/@onpr/vue-redux';
</script>

README

Vue-Redux bindings

public api

  • provideStore(store) - provide redux store
  • useStore() - inject provided store
  • useDispatch() - inject dispatch method of injected store
  • useSelector(selector, compare?) - select state (check react-redux)
  • createHooks() - create namespaced hooks (or for typing)
  • mixin - Mixin from options

TypeScript

Use createHooks<T>() for typed hooks creation

Check d.ts for API types