Skip to content

Commit

Permalink
fix: store
Browse files Browse the repository at this point in the history
SKIP_TESTS
  • Loading branch information
tannerlinsley committed May 7, 2023
1 parent f503ef3 commit 5e25e57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/loaders/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class LoaderClient<
{
onUpdate: (next) => {
this.state = next
return next
},
},
) as LoaderClientStore
Expand Down Expand Up @@ -454,12 +455,11 @@ export class LoaderInstance<
}
}
},
onUpdate: (next, prev) => {
onUpdate: (next) => {
this.state = next

// if (next.isLoading !== prev.isLoading) {
this.#notifyClient()
// }
return next
},
},
)
Expand Down
1 change: 1 addition & 0 deletions packages/router/src/routeMatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class RouteMatch<
{
onUpdate: (next) => {
this.state = next
return next
},
},
),
Expand Down
1 change: 1 addition & 0 deletions packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export class Router<
{
onUpdate: (state) => {
this.state = state
return state
},
},
)
Expand Down

0 comments on commit 5e25e57

Please sign in to comment.