Skip to content

Commit

Permalink
fix: always update the transient snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed May 29, 2022
1 parent 49caef8 commit e4c7e01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ function createStore({
console.log(state.value, state.context)
onStoreChange()
console.groupEnd()
} else console.debug('state.changed: false')
} else {
console.groupCollapsed('state.changed: false')
transient = state
console.log(state.value, state.context)
console.groupEnd()
}
})
console.debug('service.start')
service.start()
Expand Down

0 comments on commit e4c7e01

Please sign in to comment.