@reactive-cache/core 2.7.0 → 2.8.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/dist/index.js CHANGED
@@ -154,6 +154,7 @@ export const __createReactiveCache__ = (updateRecourse$, params, onData, onCompl
154
154
  if (patchedState !== null) {
155
155
  void Promise.resolve(() => {
156
156
  state$.next(patchedState);
157
+ patchedState = null;
157
158
  });
158
159
  }
159
160
  };
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@reactive-cache/core",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "type": "module",
5
- "private": false,
6
5
  "scripts": {
7
6
  "test": "npx tsc && tsx watch src/test.ts && echo 'all tests are complete!'",
8
7
  "prepare": "npx tsc && rm -f ./dist/test.js"
package/src/index.ts CHANGED
@@ -255,6 +255,7 @@ export const __createReactiveCache__ = <T>(
255
255
  if(patchedState !== null) {
256
256
  void Promise.resolve(() => {
257
257
  state$.next(patchedState!);
258
+ patchedState = null
258
259
  })
259
260
  }
260
261
  }