GitShow/kentcdodds/react-and-stale-closures
kentcdodds

react-and-stale-closures

This is a demo to show why so-called "stale closures" is a feature, not an annoyance.

by kentcdodds
classeshookskcd-edureact
Star on GitHubForkWebsitenpm

JavaScript

35 stars5 forks1 contributorQuiet · 5y agoSince 2020

Meet the team

See all 1 on GitHub →
kentcdodds
kentcdodds6 contributions

Languages

View on GitHub →
JavaScript82.3%
HTML17.7%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
empz
All 4 examples behave the same way.ClosedIssue

All 4 examples from the demo behave the same. They all update the current active post instead of the one that was active when the heart button was clicked.

empz · 5y ago
Structured data for AI agents

Repository: kentcdodds/react-and-stale-closures. Description: This is a demo to show why so-called "stale closures" is a feature, not an annoyance. Stars: 35, Forks: 5. Primary language: JavaScript. Languages: JavaScript (82.3%), HTML (17.7%). Homepage: https://react-and-stale-closures.netlify.app/ Topics: classes, hooks, kcd-edu, react. Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 28%. Top contributors: kentcdodds.

·@ofershap

Replace github.com with gitshow.dev