⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/query-core/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export class Query<
): Promise<TData> {
if (
this.state.fetchStatus !== 'idle' &&
// If the promise in the retyer is already rejected, we have to definitely
// If the promise in the retryer is already rejected, we have to definitely
// re-start the fetch; there is a chance that the query is still in a
// pending state when that happens
this.#retryer?.status() !== 'rejected'
Expand Down Expand Up @@ -735,7 +735,7 @@ function getDefaultState<

const initialDataUpdatedAt = hasData
? typeof options.initialDataUpdatedAt === 'function'
? (options.initialDataUpdatedAt as () => number | undefined)()
? options.initialDataUpdatedAt()
: options.initialDataUpdatedAt
: 0

Expand Down
5 changes: 2 additions & 3 deletions packages/query-core/src/queryObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import type {
QueryObserverBaseResult,
QueryObserverOptions,
QueryObserverResult,
QueryOptions,
RefetchOptions,
} from './types'

Expand Down Expand Up @@ -341,7 +340,7 @@ export class QueryObserver<

// Fetch
let promise: Promise<TQueryData | undefined> = this.#currentQuery.fetch(
this.options as QueryOptions<TQueryFnData, TError, TQueryData, TQueryKey>,
this.options,
fetchOptions,
)

Expand Down Expand Up @@ -545,7 +544,7 @@ export class QueryObserver<
}

if (this.#selectError) {
error = this.#selectError as any
error = this.#selectError
data = this.#selectResult
errorUpdatedAt = Date.now()
status = 'error'
Expand Down
5 changes: 2 additions & 3 deletions packages/query-devtools/src/Devtools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ import type {
Query,
QueryCache,
QueryCacheNotifyEvent,
QueryState,
} from '@tanstack/query-core'
import type { StorageObject, StorageSetter } from '@solid-primitives/storage'
import type { Accessor, Component, JSX, Setter } from 'solid-js'
Expand Down Expand Up @@ -1963,7 +1962,7 @@ const QueryDetails = () => {
...activeQueryVal.state.fetchMeta,
__previousQueryOptions,
} as any,
} as QueryState<unknown, Error>)
})
}

const restoreQueryAfterLoadingOrError = () => {
Expand Down Expand Up @@ -2199,7 +2198,7 @@ const QueryDetails = () => {
...activeQueryVal.state.fetchMeta,
__previousQueryOptions,
} as any,
} as QueryState<unknown, Error>)
})
}
}}
>
Expand Down
Loading