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 2170edc commit 643c44a
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 643c44a

Please sign in to comment.