Skip to content

Commit e4c7e01

Browse files
committed
fix: always update the transient snapshot
1 parent 49caef8 commit e4c7e01

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ function createStore({
5252
console.log(state.value, state.context)
5353
onStoreChange()
5454
console.groupEnd()
55-
} else console.debug('state.changed: false')
55+
} else {
56+
console.groupCollapsed('state.changed: false')
57+
transient = state
58+
console.log(state.value, state.context)
59+
console.groupEnd()
60+
}
5661
})
5762
console.debug('service.start')
5863
service.start()

0 commit comments

Comments
 (0)