-
-
Notifications
You must be signed in to change notification settings - Fork 51
[rule] no-leaked-intersection-observer #1841
Copy link
Copy link
Open
Labels
pr welcomeCommunity contributions welcomeCommunity contributions welcomepriority: mediumNormal priorityNormal prioritystatus: acceptedAccepted, waiting for implementationAccepted, waiting for implementationtype: new-ruleIntroduce a new ESLint ruleIntroduce a new ESLint rule
Metadata
Metadata
Assignees
Labels
pr welcomeCommunity contributions welcomeCommunity contributions welcomepriority: mediumNormal priorityNormal prioritystatus: acceptedAccepted, waiting for implementationAccepted, waiting for implementationtype: new-ruleIntroduce a new ESLint ruleIntroduce a new ESLint rule
Problem Description
Memory leakage / unexpected behavior if the IntersectionObserver isn't closed when re-rendering.
Basically a copy of the no-leaked-resize-observer rule, but for the IntersectionObserver
Alternative Solutions
Rule Documentation Template
Currently on my phone, but can add these later. Pretty much the same docs as no-leaked-resize-observer, but with the IntersectionObserver
Evaluation Checklist