match vanilla StateCreator type in middleware/subscribeWithSelector (#787)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* match vanilla StateCreator type Match https://github.com/pmndrs/zustand/blob/0ba3c240078cf61792a4b13ff11d774ecca70a0a/src/vanilla.ts#L50-L52 to make subscribeWithSelector more useful with custom states. Ran into this when trying to use subscribeWithSelector with custom middleware that uses immer's WritableDraft on SetState * apply changes for all middleware
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Todd Williams <twilliams5@snapchat.com>
- Co-authored-by: daishi <daishi@axlight.com>
Diff stats
3 files+9 added−9 removed
- other:+9 added−9 removed