linkerd2/web
Christy Jacob 15b1e46b4f
Refactoring to suppress eslint warnings react/no-did-update-set-state flag (#3974)
* Refactoring to suppress eslint warnings

Upon enabling react/no-did-update-set-state flag in .eslintrc , a couple of warnings are raised because it is a bad practice to use the setState() function within the componentDidUpdate() hook.

The code has been refactored to follow the eslint spec.

During the code review, it was pointed out that the react/no-did-update-set-state is enabled by default and can be removed from .eslintrc

The flag was removed from .eslintrc

Fixes #3928

Signed-off-by: Christy Jacob <christyjacob4@gmail.com>
2020-01-30 17:34:07 -08:00
..
app Refactoring to suppress eslint warnings react/no-did-update-set-state flag (#3974) 2020-01-30 17:34:07 -08:00
srv Ensure cache does not store index_bundle.js (#3891) 2020-01-08 09:56:40 -08:00
templates Remove single namespace functionality (#2474) 2019-03-12 00:17:22 -07:00
Dockerfile Fix CNI config parsing (#3953) 2020-01-23 09:55:04 -08:00
main.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00