Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: missing documentation for react compiler "compilationMode: annotation" #71931

Open
Chenalejandro opened this issue Oct 27, 2024 · 0 comments
Labels
Documentation Related to Next.js' official documentation.

Comments

@Chenalejandro
Copy link

Chenalejandro commented Oct 27, 2024

What is the documentation issue?

How does the annotation works?

In the react website there is the use no memo directive (https://react.dev/learn/react-compiler#something-is-not-working-after-compilation), but I am not sure if the annotation mode is refering that.

From my testing, "use no memo" works by just setting this:

  experimental: {
    reactCompiler: true,
  },

The annotation mode in next.js makes me think that it is more an opt-in feature than the use no memo's opt-out.

Is there any context that might help us understand?

No

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/canary/app/api-reference/next-config-js/reactCompiler

@Chenalejandro Chenalejandro added the Documentation Related to Next.js' official documentation. label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

No branches or pull requests

1 participant