Buckets:
| import { produce } from 'immer'; | |
| const immerImpl = (initializer) => (set, get, store) => { | |
| store.setState = (updater, replace, ...args) => { | |
| const nextState = typeof updater === "function" ? produce(updater) : updater; | |
| return set(nextState, replace, ...args); | |
| }; | |
| return initializer(store.setState, get, store); | |
| }; | |
| const immer = immerImpl; | |
| export { immer }; | |
Xet Storage Details
- Size:
- 373 Bytes
- Xet hash:
- 7ff188fc1baa3dceabe44199d177273d5f088f5d63fe226cab82fa7ae591f693
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.