Chuyển sang chế độ ngoại tuyến với ứng dụng Player FM !
Understanding prop passing from RSC to Client Components
Manage episode 373814183 series 1635850
Sam and Ryan discuss how TypeScript helped them understand the mechanics of how props get passed from Server Components to Client Components, and how to properly type client component props if the prop starts out as a rich data type on the server. They also clarify some points from last episode’s discussion about the RSC payload.
Topics include:
- 0:00 - Intro
- 0:40 - Clarifying what the RSC Payload actually is
- 10:12 - Understanding prop serialization when passing props from Server Components to Client Components
- 23:38 - How to define TypeScript types for serialized props, and Remix’s SerializeFrom helper
Links:
201 tập
Manage episode 373814183 series 1635850
Sam and Ryan discuss how TypeScript helped them understand the mechanics of how props get passed from Server Components to Client Components, and how to properly type client component props if the prop starts out as a rich data type on the server. They also clarify some points from last episode’s discussion about the RSC payload.
Topics include:
- 0:00 - Intro
- 0:40 - Clarifying what the RSC Payload actually is
- 10:12 - Understanding prop serialization when passing props from Server Components to Client Components
- 23:38 - How to define TypeScript types for serialized props, and Remix’s SerializeFrom helper
Links:
201 tập
כל הפרקים
×Chào mừng bạn đến với Player FM!
Player FM đang quét trang web để tìm các podcast chất lượng cao cho bạn thưởng thức ngay bây giờ. Đây là ứng dụng podcast tốt nhất và hoạt động trên Android, iPhone và web. Đăng ký để đồng bộ các theo dõi trên tất cả thiết bị.