Skip to content

Commit

Permalink
refactor(angular-query) set initial isRestoring to true to match th…
Browse files Browse the repository at this point in the history
…e React adapter logic
  • Loading branch information
OmerGronich committed Dec 13, 2024
1 parent ffa43a8 commit 235bbab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type PersistQueryClientOptions = {
export function withPersistQueryClient(
persistQueryClientOptions: Array<PersistQueryClientOptions>,
): PersistQueryClientFeature {
const isRestoring = signal(false)
const isRestoring = signal(true)
const providers = [
provideIsRestoring(isRestoring.asReadonly()),
{
Expand All @@ -67,7 +67,6 @@ export function withPersistQueryClient(
const destroyRef = inject(DestroyRef)
const queryClient = injectQueryClient()

isRestoring.set(true)
const restorations = persistQueryClientOptions.map(
({ onSuccess, persistOptions }) => {
const options = { queryClient, ...persistOptions }
Expand Down

0 comments on commit 235bbab

Please sign in to comment.