mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[playground] Turn on Forget
Runs Forget on the playground, so we can dogfood Forget and experiment with improvements to UX. Opts out of compiling the layout page because thats run on the server which doesn't seem to have access to useMemoCache.
This commit is contained in:
1 parent
1138ef00e3
commit
ad1fe50546
2 files changed
+17
No files matched your search
@@ -12,6 +12,7 @@ export default function RootLayout({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
"use no forget";
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
module.exports = function (api) {
|
||||
api.cache(true);
|
||||
return {
|
||||
presets: ["next/babel"],
|
||||
plugins: [
|
||||
[
|
||||
"babel-plugin-react-forget",
|
||||
{
|
||||
gating: null,
|
||||
compilationMode: "infer",
|
||||
panicThreshold: "NONE",
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user