We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ced7ec commit 42ac8eeCopy full SHA for 42ac8ee
src/vanilla.ts
@@ -73,7 +73,7 @@ const createStoreImpl: CreateStoreImpl = (createState) => {
73
if (!Object.is(nextState, state)) {
74
const previousState = state
75
state =
76
- replace ?? ( typeof nextState !== 'object' || nextState === null )
+ replace ?? (typeof nextState !== 'object' || nextState === null)
77
? (nextState as TState)
78
: Object.assign({}, state, nextState)
79
listeners.forEach((listener) => listener(state, previousState))
0 commit comments