Skip to content

Commit

Permalink
docs(pmndrs#1220): split migration for create function paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
sewera committed Jan 5, 2023
1 parent 5bf4d25 commit f6c9e73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/migrations/v4-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ of the test files in the repo from v3 to v4.

If you're not passing any type parameters to `create`,
no migration is required.

If you're using a "leaf" middleware like `combine` or `redux`,
remove all type parameters from `create`.

Else, replace `create<T, ...>(...)` with `create<T>()(...)`.

## `StateCreator` (from `zustand` and `zustand/vanilla`)
Expand Down

0 comments on commit f6c9e73

Please sign in to comment.