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 a006919 commit 199b073
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lazy-observable.ts
Original file line number Diff line number Diff line change
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 199b073

Please sign in to comment.