We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325499c commit 5eed2fcCopy full SHA for 5eed2fc
packages/react/src/index.ts
@@ -24,7 +24,7 @@ export { signal, computed, batch, effect, Signal, type ReadonlySignal };
24
const Empty = [] as const;
25
const ReactElemType = Symbol.for("react.element"); // https://github.com/facebook/react/blob/346c7d4c43a0717302d446da9e7423a8e28d8996/packages/shared/ReactSymbols.js#L15
26
const ReactMemoType = Symbol.for("react.memo"); // https://github.com/facebook/react/blob/346c7d4c43a0717302d446da9e7423a8e28d8996/packages/shared/ReactSymbols.js#L30
27
-const ProxyInstance = new Map<FunctionComponent<any>, FunctionComponent<any>>();
+const ProxyInstance = new WeakMap<FunctionComponent<any>, FunctionComponent<any>>();
28
const SupportsProxy = typeof Proxy === "function";
29
30
const ProxyHandlers = {
0 commit comments