Skip to content

Commit

Permalink
fix(solid-query): Trigger refetch when query changes before hydration (
Browse files Browse the repository at this point in the history
  • Loading branch information
ardeora committed Apr 18, 2024
1 parent 69d37f3 commit 23c4661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/solid-query/src/createBaseQuery.ts
Expand Up @@ -355,6 +355,7 @@ export function createBaseQuery<
([obs, opts]) => {
obs.setOptions(opts)
setStateWithReconciliation(obs.getOptimisticResult(opts))
refetch()
},
{ defer: true },
),
Expand Down

0 comments on commit 23c4661

Please sign in to comment.