Player FM 앱으로 오프라인으로 전환하세요!
Exploring useActionState
Manage episode 450217020 series 1635850
Sam and Ryan talk about React 19's useActionState hook. They discuss how adding async functions to a plain React app introduces lots of in-between states that developers must grapple with, and how useActionState allows React to collapse and eliminate these states, bringing the simplicity of React's sync mental model to our async code.
Timestamps:
- 0:00 - Intro
- 1:51 - How React normally eliminates state in synchronous apps
- 8:20 - How useActionState lets React eliminate state in asynchronous apps
- 18:17 - Why you shouldn't just pass server actions into useActionState
- 23:00 - TCP/IP and UDP analogy
- 26:39 - Thinking of useActionState like enqueue
- 34:55 - Why the term "reducer" is too loaded for best understanding useActionState
- 51:07 - How useActionState helps you build a Todo app that stays responsive during pending actions
201 에피소드
Manage episode 450217020 series 1635850
Sam and Ryan talk about React 19's useActionState hook. They discuss how adding async functions to a plain React app introduces lots of in-between states that developers must grapple with, and how useActionState allows React to collapse and eliminate these states, bringing the simplicity of React's sync mental model to our async code.
Timestamps:
- 0:00 - Intro
- 1:51 - How React normally eliminates state in synchronous apps
- 8:20 - How useActionState lets React eliminate state in asynchronous apps
- 18:17 - Why you shouldn't just pass server actions into useActionState
- 23:00 - TCP/IP and UDP analogy
- 26:39 - Thinking of useActionState like enqueue
- 34:55 - Why the term "reducer" is too loaded for best understanding useActionState
- 51:07 - How useActionState helps you build a Todo app that stays responsive during pending actions
201 에피소드
모든 에피소드
×플레이어 FM에 오신것을 환영합니다!
플레이어 FM은 웹에서 고품질 팟캐스트를 검색하여 지금 바로 즐길 수 있도록 합니다. 최고의 팟캐스트 앱이며 Android, iPhone 및 웹에서도 작동합니다. 장치 간 구독 동기화를 위해 가입하세요.