DiscoverBuild it Better - Advanced Web Development TopicsS01E25- Unraveling the Mystery Behind React’s Global Fetch Override: Devs Are Divided!
S01E25- Unraveling the Mystery Behind React’s Global Fetch Override: Devs Are Divided!

S01E25- Unraveling the Mystery Behind React’s Global Fetch Override: Devs Are Divided!

Update: 2023-08-07
Share

Description

In this episode of the Build IT Better podcast, our hosts discuss two major topics in the React and Next.js ecosystem. Firstly, they delve into the app directory architecture in Next.js and the introduction of React server components. They explore the transition from a client-first to a server-components-first approach and the challenges faced in development, particularly in managing state and toggling between server and client modes for components.


The discussion then moves to the controversial decision of globally overriding the fetch function in React and Next.js. The hosts express frustration with this opinionated change to a fundamental standard and raise concerns about potential bugs and data leakage due to caching behavior. They also debate the best way to split server and client code, comparing file-based solutions with meta strings or decorators.


The limitations of server components are examined, with the hosts expressing disappointment over the inability to use essential React paradigms like state on the server. They advocate for more open discussions and RFCs before implementing significant changes.


Throughout the segment, the hosts stress the importance of thoughtful planning in dealing with server components and the need to make intentional decisions to ensure smooth development and prevent performance issues. They also call for transparency and collaboration in the development of these technologies.


Panel

Adam L. Barrett @adamlbarrett

Jesse Tomchak @jtomchak

Dane Grant @danecando

Dustin Goodman @dustinsgoodman


This episode is sponsored by This Dot Labs

Comments 
In Channel
loading
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

S01E25- Unraveling the Mystery Behind React’s Global Fetch Override: Devs Are Divided!

S01E25- Unraveling the Mystery Behind React’s Global Fetch Override: Devs Are Divided!

This Dot