We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-did-mount-set-state
1 parent 5682155 commit 44dbd0bCopy full SHA for 44dbd0b
packages/eslint-config-airbnb/rules/react.js
@@ -142,7 +142,8 @@ module.exports = {
142
143
// Prevent usage of setState in componentDidMount
144
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md
145
- 'react/no-did-mount-set-state': 'error',
+ // this is necessary for server-rendering
146
+ 'react/no-did-mount-set-state': 'off',
147
148
// Prevent usage of setState in componentDidUpdate
149
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-update-set-state.md
0 commit comments