@chromahq/react 1.0.48 → 1.0.49

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1279,6 +1279,12 @@ const BridgeProvider = ({
1279
1279
  return () => {
1280
1280
  document.removeEventListener("visibilitychange", handleVisibilityChange);
1281
1281
  clearTimeoutSafe(maxRetryCooldownRef);
1282
+ clearTimeoutSafe(queueDrainTimeoutRef);
1283
+ eventListenersRef.current.clear();
1284
+ activeIdempotencyKeysRef.current.clear();
1285
+ requestQueueRef.current = [];
1286
+ pendingRequestsRef.current.forEach(({ timeout }) => clearTimeout(timeout));
1287
+ pendingRequestsRef.current.clear();
1282
1288
  cleanup(false);
1283
1289
  };
1284
1290
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chromahq/react",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "React bindings for the Chroma Chrome extension framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",