๐ Catches situations when a react use(Layout)Effect runs repeatedly in rapid succession
by kentcdoddsJavaScript
Last 12 weeks ยท 0 commits
5 of 6 standards met
version: 1.2.0 version: 10.15.3 (or ) version: 6.9.0 Relevant code or config Since the options object passed to is recreated every call and not memoized, this caused a runaway effect. I tried using this module to catch future accidents like this, but it does not seem to catch it. What you did: Created file from documentation Imported it in the root file (index.js) Tried importing in the relevant file (App.jsx) What happened: The runaway hook was not caught Reproduction repository: I will try to get a repro repo together another time. Problem description: Suggested solution:
Repository: kentcdodds/stop-runaway-react-effects. Description: ๐ Catches situations when a react use(Layout)Effect runs repeatedly in rapid succession Stars: 794, Forks: 12. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: https://codesandbox.io/s/react-codesandbox-ihhlx Topics: hooks, react. Latest release: v2.0.0 (6y ago). Open PRs: 0, open issues: 1. Last activity: 1y ago. Community health: 71%. Top contributors: allcontributors[bot], foray1010, andrewmcodes, davidosomething, jdorfman, kentcdodds, scottmas, robbieaverill.