vuex-composition-helpers
Advanced tools
Comparing version 1.0.20 to 1.0.21
import { computed } from '@vue/composition-api'; | ||
import { computedGetter, getAction, getMutation, getStoreFromInstance, useMapping } from './util'; | ||
function computedState(store, namespace, prop) { | ||
return computed(() => store.state[namespace][prop]); | ||
let module = namespace.split('/').reduce((module, key) => module[key], store.state); | ||
return computed(() => module[prop]); | ||
} | ||
@@ -6,0 +7,0 @@ export function useNamespacedState(storeOrNamespace, namespaceOrMap, map) { |
{ | ||
"name": "vuex-composition-helpers", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "Helpers to use Vuex store form Vue Composition API", | ||
@@ -5,0 +5,0 @@ "author": "David Meir-Levy <davidmeirlevy@gmail.com>", |
@@ -8,3 +8,4 @@ import {computed} from '@vue/composition-api'; | ||
function computedState(store: any, namespace: string, prop: string) { | ||
return computed(() => store.state[namespace][prop]) | ||
let module = namespace.split('/').reduce((module, key) => module[key], store.state) | ||
return computed(() => module[prop]) | ||
} | ||
@@ -11,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35244
499