@tanstack/lit-query 0.2.29 → 0.2.31
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/legacy/index.cjs +3 -3
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.js +3 -3
- package/build/legacy/index.js.map +1 -1
- package/build/modern/index.cjs +3 -3
- package/build/modern/index.cjs.map +1 -1
- package/build/modern/index.js +3 -3
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/QueryClientProvider.ts +2 -2
- package/src/controllers/BaseController.ts +1 -1
- package/src/createQueriesController.ts +3 -3
package/build/legacy/index.cjs
CHANGED
|
@@ -1056,9 +1056,9 @@ var QueriesController = class QueriesController extends BaseController {
|
|
|
1056
1056
|
if (!this.observer) return rawResult;
|
|
1057
1057
|
const observers = this.observer.getObservers();
|
|
1058
1058
|
return rawResult.map((result, index) => {
|
|
1059
|
-
const
|
|
1060
|
-
if (!
|
|
1061
|
-
return
|
|
1059
|
+
const resultObserver = observers[index];
|
|
1060
|
+
if (!resultObserver || resultObserver.options.notifyOnChangeProps) return result;
|
|
1061
|
+
return resultObserver.trackResult(result, (accessedProp) => {
|
|
1062
1062
|
observers.forEach((observer) => {
|
|
1063
1063
|
observer.trackProp(accessedProp);
|
|
1064
1064
|
});
|