Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
NaridaL committed May 15, 2020
1 parent 53d08e7 commit d7cf0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lazy-observable.ts
Expand Up @@ -53,7 +53,9 @@ export function lazyObservable<T>(
let currentFnc = () => {
if (!started) {
started = true
pending.set(true)
_allowStateChanges(true, () => {
pending.set(true)
})
fetch((newValue: T) => {
_allowStateChanges(true, () => {
value.set(newValue)
Expand Down

0 comments on commit d7cf0b5

Please sign in to comment.