Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicholasglazer/usefs


https://github.com/nicholasglazer/usefs

Last synced: about 1 month ago
JSON representation

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;
```