mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Update imports (#1674)
This commit is contained in:
parent
5b8abb2f70
commit
0ee21f8dbc
@ -484,7 +484,7 @@ If the storage you want to use does not match the expected API, you can create y
|
||||
|
||||
```ts
|
||||
import { create } from 'zustand'
|
||||
import { persist, StateStorage } from 'zustand/middleware'
|
||||
import { persist, createJSONStorage, StateStorage } from 'zustand/middleware'
|
||||
import { get, set, del } from 'idb-keyval' // can use anything: IndexedDB, Ionic Storage, etc.
|
||||
|
||||
// Custom storage object
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user