We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06872a1 commit db25138Copy full SHA for db25138
1 file changed
src/index.ts
@@ -241,7 +241,7 @@ const travelImpl: Travel =
241
travels.subscribe((state) => {
242
const nextState = { ...state, ...actions } as T;
243
// Merge state with actions and replace entirely
244
- store.setState(nextState, true);
+ (store.setState as SetState<T>)(nextState, true);
245
});
246
247
// Add getControls method to store
0 commit comments