Did v4.4.5 break create/combine with TypeScript? #2172
Answered
by
dbritto-dev
rodrigocfd
asked this question in
Bug report
-
I'm using this example from the TypeScript guide: import { create } from 'zustand'
import { combine } from 'zustand/middleware'
const useBearStore = create(
combine({ bears: 0 }, (set) => ({
increase: (by: number) => set((state) => ({ bears: state.bears + by })),
}))
) It worked until today, when I updated to v4.4.5... is this a bug? |
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Nov 1, 2023
Replies: 2 comments
-
yes, here's the fix -> #2170. BTW, would you mind trying the local instructions (https://ci.codesandbox.io/status/pmndrs/zustand/pr/2170/builds/434064)? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rodrigocfd
-
See also #2163 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, here's the fix -> #2170. BTW, would you mind trying the local instructions (https://ci.codesandbox.io/status/pmndrs/zustand/pr/2170/builds/434064)?