[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:
Sathya Gunasekaran
2023-10-23 15:41:01 +01:00
parent 1138ef00e3
commit ad1fe50546
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
"use no forget";
return (
<html lang="en">
<head>
+16
View File
@@ -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",
},
],
],
};
};