Skip to content

Comments

Fix ref callback explanation in deps exercise#252

Merged
kentcdodds merged 1 commit intomainfrom
cursor/ref-callback-documentation-4a6b
Feb 21, 2026
Merged

Fix ref callback explanation in deps exercise#252
kentcdodds merged 1 commit intomainfrom
cursor/ref-callback-documentation-4a6b

Conversation

@kentcdodds
Copy link
Member

@kentcdodds kentcdodds commented Feb 21, 2026

Note

Low Risk
Documentation-only change with no runtime or behavior impact.

Overview
Updates the Dependencies exercise README to correct and clarify the explanation for why the vanilla-tilt effect resets on re-render.

The docs now attribute the behavior to using an inline callback ref (new function each render), and aligns the subsequent useEffect dependency discussion/examples with that model.

Written by Cursor Bugbot for commit 899bd83. This will update automatically on new commits. Configure here.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds merged commit 316a4f1 into main Feb 21, 2026
2 of 5 checks passed
@kentcdodds kentcdodds deleted the cursor/ref-callback-documentation-4a6b branch February 21, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants