[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.
Sathya Gunasekaran committed
Oct 23, 2023 at 15:41 UTC
ad1fe50546f112e5efae55ab2957007dee29d86c
2 files changed
+17
compiler/apps/playground/app/layout.tsx
+1
@@ -12,6 +12,7 @@ export default function RootLayout({
12
}: {
13
children: React.ReactNode;
14
}) {
15
+ "use no forget";
16
return (
17
<html lang="en">
18
<head>
compiler/apps/playground/babel.config.js
new
+16
@@ -0,0 +1,16 @@
1
+module.exports = function (api) {
2
+ api.cache(true);
3
+ return {
4
+ presets: ["next/babel"],
5
+ plugins: [
6
+ [
7
+ "babel-plugin-react-forget",
8
+ {
9
+ gating: null,
10
+ compilationMode: "infer",
11
+ panicThreshold: "NONE",
12
+ },
13
+ ],
14
+ ],
15
+ };
16
+};