Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihengGet committed Jul 14, 2024
1 parent 4a3c1e0 commit 5e9b3bf
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/svelte-query/src/createBaseQuery.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ export function createBaseQuery<
return defaultedOptions
}

const defaultedOptionsStore = $derived(updateOptions)
const defaultedOptionsStore = updateOptions
/** Creates the observer */
const observer = $derived(
new Observer<TQueryFnData, TError, TData, TQueryData, TQueryKey>(
client,
defaultedOptionsStore(),
),
)
const observer = new Observer<
TQueryFnData,
TError,
TData,
TQueryData,
TQueryKey
>(client, defaultedOptionsStore())

let result = $state<QueryObserverResult<TData, TError>>(
observer.getOptimisticResult(defaultedOptionsStore()),
Expand Down

0 comments on commit 5e9b3bf

Please sign in to comment.