Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 8, 2024
1 parent a6faf83 commit 81ff334
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-query/src/useBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export function useBaseQuery<
useClearResetErrorBoundary(errorResetBoundary)

// this needs to be invoked before creating the Observer because that can create a cache entry
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash)
const isNewCacheEntry = !client
.getQueryCache()
.get(defaultedOptions.queryHash)

const [observer] = React.useState(
() =>
Expand Down

0 comments on commit 81ff334

Please sign in to comment.