Skip to content

Commit 1e1bb35

Browse files
committed
Clarify store structure guidelines in README with TypeScript interface recommendations
1 parent 33b9348 commit 1e1bb35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Zustand is an unopinionated framework, but this project has opinions.
7676
- Stores should be structured and separate from rendering components
7777
- Stores should use Immer for easier immutability
7878
- Zustand does not natively support computeds, so we have a separate hook co-located with the store
79+
- Stores should clearly define their Actions and State, separately, using typescript interfaces
7980

8081
A store must be created in a file called \*Store.ts and exported as the default export. Ad-hoc stores shouldn't be created in components.
8182

0 commit comments

Comments
 (0)