GitShow/kentcdodds/stop-runaway-react-effects
kentcdodds

stop-runaway-react-effects

๐Ÿƒ Catches situations when a react use(Layout)Effect runs repeatedly in rapid succession

by kentcdodds
hooksreact
Star on GitHubForkWebsitenpm

JavaScript

794 stars12 forks9 contributorsQuiet ยท 1y agoSince 2019v2.0.0MIT

Meet the team

See all 9 on GitHub โ†’
allcontributors[bot]Bot
allcontributors[bot]5 contributions
foray1010
foray10102 contributions
andrewmcodes
andrewmcodes1 contribution
davidosomething
davidosomething1 contribution
jdorfman
jdorfman1 contribution
kentcdodds
kentcdodds1 contribution
scottmas
scottmas1 contribution
robbieaverill
robbieaverill1 contribution

Languages

View on GitHub โ†’
JavaScript100%

Commit activity

Last 12 weeks ยท 0 commits

Full graph โ†’

Community health

5 of 6 standards met

Community profile โ†’
71
โœ“READMEโœ“Licenseโœ“Contributingโ—‹Code of Conductโœ“Issue Templateโœ“PR Template

Recent PRs & issues

Quiet ยท 1 discussion ยท Last activity 1y ago
See all on GitHub โ†’
nimrossum
useFetch runaway effect not caughtOpenIssue

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:

nimrossum ยท 6y ago

Recent fixes

View closed PRs โ†’
robbieaverill
Update documentation links to useEffect and useLayoutEffectMergedPR

What: Update links to React docs in readme Why: The original links now refer to a legacy version of the React documentation How: Following the suggested new locations of the docs from the legacy React docs links that were here Checklist: [x] Documentation [ ] Tests N/A [x] Ready to be merged

robbieaverill ยท 1y ago
Chainarong24NutDogg
NClosedIssue
Chainarong24NutDogg ยท 6y ago
kentcdodds
feat: change default hijack to only "development"MergedPR

BREAKING CHANGE: The default for importing the hijack file has changed from to . This way, in addition to not hijacking "production" it doesn't hijack for "test" either. If you prefer to keep the original behavior, then you can make this change after upgrading:

kentcdodds ยท 6y ago
Structured data for AI agents

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.

ยท@ofershap

Replace github.com with gitshow.dev