Skip to content

Commit

Permalink
chore: updated version and removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert-Gao committed Jul 1, 2021
1 parent bab8711 commit 6042e66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<img src="https://badgen.net/twitter/follow/albertgao"/>
</a>

**Stop writing selectors and do more work!**

## Features

- auto generate selectors for Zustand store
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto-zustand-selectors-hook",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [],
"description": "",
"main": "dist/index.min.js",
Expand Down
10 changes: 0 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,3 @@ export function createSelectorHooks<StoreType extends State>(

return store as UseStore<StoreType> & Hook<StoreType>;
}

// interface BearState {
// bears: number;
// increase: (by: number) => void;
// }

// const useStore = create<BearState>(set => ({
// bears: 0,
// increase: by => set(state => ({ bears: state.bears + by })),
// }));

0 comments on commit 6042e66

Please sign in to comment.