Course contentsShow
React
Lesson 441 of 2,39612. Rendering and BatchingPro lesson

Async Functions and Stale State

Why state read inside setTimeout or after await can be outdated—the closure captured an old render's value.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.