-
Notifications
You must be signed in to change notification settings - Fork 27
Extend disallow-react-api-in-server-components ESLint rule #919
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
base: master
Are you sure you want to change the base?
Conversation
Bundle size report
Check out the code infra dashboard for more information about this PR. |
…lacklist, detect React API imports, add tests Co-authored-by: Janpot <[email protected]>
packages/code-infra/src/eslint/material-ui/rules/disallow-react-api-in-server-components.mjs
Outdated
Show resolved
Hide resolved
packages/code-infra/src/eslint/material-ui/rules/disallow-react-api-in-server-components.mjs
Outdated
Show resolved
Hide resolved
…i helper Co-authored-by: Janpot <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
packages/code-infra/src/eslint/material-ui/rules/disallow-react-api-in-server-components.mjs
Outdated
Show resolved
Hide resolved
…d calls Co-authored-by: Janpot <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
useRefanduseContexttoREACT_CLIENT_APISand sort alphabeticallySERVER_COMPONENT_FORBIDDEN_APISfor APIs likeuseIsoLayoutEffectthat should be banned in server componentsimport { useState } from 'react')Original prompt