@tanstack/query-core 4.32.5 → 4.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/focusManager.d.ts.map +1 -0
- package/build/lib/hydration.d.ts.map +1 -0
- package/build/lib/index.d.ts +2 -1
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.esm.js +1 -0
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.js +2 -0
- package/build/lib/index.js.map +1 -1
- package/build/lib/index.mjs +1 -0
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/infiniteQueryBehavior.d.ts.map +1 -0
- package/build/lib/infiniteQueryObserver.d.ts.map +1 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.native.d.ts.map +1 -0
- package/build/lib/mutation.d.ts.map +1 -0
- package/build/lib/mutationCache.d.ts.map +1 -0
- package/build/lib/mutationObserver.d.ts.map +1 -0
- package/build/lib/notifyManager.d.ts.map +1 -0
- package/build/lib/onlineManager.d.ts.map +1 -0
- package/build/lib/queriesObserver.d.ts.map +1 -0
- package/build/lib/query.d.ts.map +1 -0
- package/build/lib/queryCache.d.ts.map +1 -0
- package/build/lib/queryClient.d.ts.map +1 -0
- package/build/lib/queryObserver.d.ts.map +1 -0
- package/build/lib/queryObserver.esm.js +1 -1
- package/build/lib/queryObserver.esm.js.map +1 -1
- package/build/lib/queryObserver.js +1 -1
- package/build/lib/queryObserver.js.map +1 -1
- package/build/lib/queryObserver.mjs +1 -1
- package/build/lib/queryObserver.mjs.map +1 -1
- package/build/lib/removable.d.ts.map +1 -0
- package/build/lib/retryer.d.ts.map +1 -0
- package/build/lib/subscribable.d.ts.map +1 -0
- package/build/lib/tests/focusManager.test.d.ts.map +1 -0
- package/build/lib/tests/hydration.test.d.ts.map +1 -0
- package/build/lib/tests/infiniteQueryBehavior.test.d.ts.map +1 -0
- package/build/lib/tests/infiniteQueryObserver.test.d.ts.map +1 -0
- package/build/lib/tests/mutationCache.test.d.ts.map +1 -0
- package/build/lib/tests/mutationObserver.test.d.ts.map +1 -0
- package/build/lib/tests/mutations.test.d.ts.map +1 -0
- package/build/lib/tests/notifyManager.test.d.ts.map +1 -0
- package/build/lib/tests/onlineManager.test.d.ts.map +1 -0
- package/build/lib/tests/queriesObserver.test.d.ts.map +1 -0
- package/build/lib/tests/query.test.d.ts.map +1 -0
- package/build/lib/tests/queryCache.test.d.ts.map +1 -0
- package/build/lib/tests/queryClient.test.d.ts.map +1 -0
- package/build/lib/tests/queryObserver.test.d.ts.map +1 -0
- package/build/lib/tests/utils.d.ts.map +1 -0
- package/build/lib/tests/utils.test.d.ts.map +1 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/umd/index.development.js +2 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/queryObserver.ts +1 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -34,7 +34,8 @@ export {
|
|
|
34
34
|
|
|
35
35
|
// Types
|
|
36
36
|
export * from './types'
|
|
37
|
-
export type {
|
|
37
|
+
export type { QueryState } from './query'
|
|
38
|
+
export { Query } from './query'
|
|
38
39
|
export type { Mutation } from './mutation'
|
|
39
40
|
export type { Logger } from './logger'
|
|
40
41
|
export type {
|
package/src/queryObserver.ts
CHANGED
|
@@ -834,7 +834,7 @@ function shouldAssignObserverCurrentProperties<
|
|
|
834
834
|
|
|
835
835
|
// if the newly created result isn't what the observer is holding as current,
|
|
836
836
|
// then we'll need to update the properties as well
|
|
837
|
-
if (observer.getCurrentResult()
|
|
837
|
+
if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {
|
|
838
838
|
return true
|
|
839
839
|
}
|
|
840
840
|
|