Artwork

Inhoud geleverd door Frontend First, Sam Selikoff, and Ryan Toronto. Alle podcastinhoud, inclusief afleveringen, afbeeldingen en podcastbeschrijvingen, wordt rechtstreeks geüpload en geleverd door Frontend First, Sam Selikoff, and Ryan Toronto of hun podcastplatformpartner. Als u denkt dat iemand uw auteursrechtelijk beschermde werk zonder uw toestemming gebruikt, kunt u het hier beschreven proces https://nl.player.fm/legal volgen.
Player FM - Podcast-app
Ga offline met de app Player FM !

Understanding prop passing from RSC to Client Components

48:11
 
Delen
 

Manage episode 373814183 series 1635850
Inhoud geleverd door Frontend First, Sam Selikoff, and Ryan Toronto. Alle podcastinhoud, inclusief afleveringen, afbeeldingen en podcastbeschrijvingen, wordt rechtstreeks geüpload en geleverd door Frontend First, Sam Selikoff, and Ryan Toronto of hun podcastplatformpartner. Als u denkt dat iemand uw auteursrechtelijk beschermde werk zonder uw toestemming gebruikt, kunt u het hier beschreven proces https://nl.player.fm/legal volgen.

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:

  continue reading

188 afleveringen

Artwork
iconDelen
 
Manage episode 373814183 series 1635850
Inhoud geleverd door Frontend First, Sam Selikoff, and Ryan Toronto. Alle podcastinhoud, inclusief afleveringen, afbeeldingen en podcastbeschrijvingen, wordt rechtstreeks geüpload en geleverd door Frontend First, Sam Selikoff, and Ryan Toronto of hun podcastplatformpartner. Als u denkt dat iemand uw auteursrechtelijk beschermde werk zonder uw toestemming gebruikt, kunt u het hier beschreven proces https://nl.player.fm/legal volgen.

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:

  continue reading

188 afleveringen

Alle afleveringen

×
 
Loading …

Welkom op Player FM!

Player FM scant het web op podcasts van hoge kwaliteit waarvan u nu kunt genieten. Het is de beste podcast-app en werkt op Android, iPhone en internet. Aanmelden om abonnementen op verschillende apparaten te synchroniseren.

 

Korte handleiding