UNPKG

@shopware-ag/meteor-admin-sdk

Version:

The Meteor SDK for the Shopware Administration.

17 lines 495 B
import { _useSharedState } from './useSharedState'; import { computed } from 'vue'; export function useAsyncSharedState(key, initialValue) { const result = _useSharedState(key, initialValue); const state = computed({ get: () => result.state.value, set: (value) => { result.state.value = value; }, }); return { state, isReady: result.isReady, ready: result.ready, }; } //# sourceMappingURL=useAsyncSharedState.js.map