the-forest/client/node_modules/eslint-plugin-react/lib/rules/no-did-update-set-state.js
2024-09-17 20:35:18 -04:00

12 lines
310 B
JavaScript

/**
* @fileoverview Prevent usage of setState in componentDidUpdate
* @author Yannick Croissant
*/
'use strict';
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
/** @type {import('eslint').Rule.RuleModule} */
module.exports = makeNoMethodSetStateRule('componentDidUpdate');