mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
15 lines
511 B
JavaScript
15 lines
511 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const React = require("react");
|
|
|
|
// Our e2e babel transform currently only compiles functions, not programs.
|
|
// As a result, our e2e transpiled code does not contain an import for `useMemoCache`
|
|
// This is a hack.
|
|
React.useMemoCache = React.unstable_useMemoCache;
|
|
globalThis.useMemoCache = React.unstable_useMemoCache;
|