fix!: prop typings

* remove wrapper exports from library

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-22 15:49:27 +01:00
parent 4932c64d52
commit fec38a129a
9 changed files with 20 additions and 18 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ import { onLoadToObject, initialState } from '~/utils'
let id = 0
export default (options?: Partial<FlowOptions>, key?: string) => {
let store = inject(Store, null)
let store = inject(Store, undefined)
if (!store) {
const withStorage = options?.storageKey ?? key ?? false
if (import.meta.env.DEV) console.warn('store context not found; creating default store')