Repository navigation
v2.1.0
Added combine function to help with type inference
The new combine function combines initial state and actions together to help
with TypeScript type inference.
const useCount = create(
combine({ count: 0 }, (set) => ({
inc: set(state => ({ count: state.count + 1 })
}))
)Full Changelog: v2.0.1...v2.1.0