@samitouri / QOS-React-2 / commits / 46d7f4f8af

Synchronize symbol names with React

In the upstream useMemoCache PR this symbol got renamed and unexpectedly caused a RN crash. Synchronize it so the comparison works.

Lauren Tan committed Oct 17, 2022 at 16:07 UTC 46d7f4f8afd25fe84b4d9916923aac72ba28f395
1 file changed +1 -1
compiler/forget/packages/react-forget-runtime/index.js
+1 -1
@@ -14,7 +14,7 @@ const {
14 useRef,
15 } = React;
16
17 -export const $empty = Symbol.for("react.usememocache_sentinel");
17 +export const $empty = Symbol.for("react.memo_cache_sentinel");
18
19 export function unstable_useMemoCache(size) {
20 "use no forget";