Skip to content

Commit 27ff148

Browse files
docs(readme): updated docs
1 parent 4c561ca commit 27ff148

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,4 @@ module.exports = [
415415
[npm-version-svg]: https://versionbadg.es/jsx-eslint/eslint-plugin-react.svg
416416

417417
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/jsx-eslint/eslint-plugin-react
418-
[actions-url]: https://github.com/jsx-eslint/eslint-plugin-react/actions
418+
[actions-url]: https://github.com/jsx-eslint/eslint-plugin-react/actions

docs/rules/ensure-matching-remove-event-listener.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
66

7+
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.
8+
79
When adding "eventListeners" at the mounting phase of a component, sometimes developers forget to remove the "eventListener" in the cleanup function of the useEffect block. This can cause memory leaks in the react application:
810

911
> **Console error**: Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

0 commit comments

Comments
 (0)