The Call Kent Podcast

Remix Full-Stack Components (vs Server Components)


Listen Later

With React Server Components getting more traction, this idea of each component being able to fetch its own data seems to getting more popular rather than data-fetching being purely route-based.

In Remix-land, you’ve had a talk about “full-stack components” with a similar concept where a “resource route” can have no default exports but still export a loader and a React component in order to have a reusable component with its own data fetching.

It seems there might be differences between React Server Components and these “full-stack components” though, especially in that Server Components don’t need to be defined in routes but Remix full-stack components do.

Firstly, how are the two approaches different?

I ask, because I know Remix is working on implementing Server Components without the foot-guns, so curious what how the mental model would change in the future.

You, also said that it isn’t a good practice to get into to commonly import components from other routes.

My second question is why is it not a good practice, and can you give examples for cases where it would or wouldn’t make sense to import full-stack components from other routes?

Thank you!

  • Full Stack Components
  • Remix Full-Stack Components (vs Server Components)
    ...more
    View all episodesView all episodes
    Download on the App Store

    The Call Kent PodcastBy Kent C. Dodds

    • 5
    • 5
    • 5
    • 5
    • 5

    5

    2 ratings


    More shows like The Call Kent Podcast

    View all
    The Changelog: Software Development, Open Source by Changelog Media

    The Changelog: Software Development, Open Source

    285 Listeners

    Software Engineering Daily by Software Engineering Daily

    Software Engineering Daily

    628 Listeners

    Soft Skills Engineering by Jamison Dance and Dave Smith

    Soft Skills Engineering

    275 Listeners

    The Daily by The New York Times

    The Daily

    111,191 Listeners

    Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

    Syntax - Tasty Web Development Treats

    988 Listeners

    PodRocket - A web development podcast from LogRocket by LogRocket

    PodRocket - A web development podcast from LogRocket

    58 Listeners

    devtools.fm: Developer Tools, Open Source, Software Development by Andrew Lisowski, Justin Bennett

    devtools.fm: Developer Tools, Open Source, Software Development

    27 Listeners

    Mostly Technical by Ian Landsman and Aaron Francis

    Mostly Technical

    15 Listeners