Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicholasglazer/usefs
https://github.com/nicholasglazer/usefs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nicholasglazer/usefs
- Owner: nicholasglazer
- License: mit
- Created: 2021-09-21T00:09:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-10T06:15:41.000Z (almost 3 years ago)
- Last Synced: 2024-04-29T09:21:01.615Z (7 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Expamle of extending
```javascript
import { initialState, createFileSystemSlice } from '@use-fs/zustand';const extendedInitialState = {
...initialState,
newFsContents: { root: [] },
something: false,
}const createExtendedFsSlice = (set, get) => ({
...createFileSystemSlice(set, get, extendedInitialState),
setSomething: (bool) => set({ something: bool }),
});export default createExtendedFsSlice;
```