Ha great we finally arrive at the "Next.js React features" which basically forces everyone to use Next.js or an additional framework on top of React which now have to play catchup with whatever react - next.js think is "best" (for Vercels wallet). Expected outcome if half or the react core team is a Vercel employee.<p>Kinda new this day was coming, sad to see it actually happen
> when navigating to a new screen, it's better to show a loading state as soon as you can (often a skeleton UI), rather than delay the transition.<p>In a better language, this would be the programmers choice on a case-by-case basis, with no need for the higher-ups to break or fix everyone's behaviour at once.<p>Either return a Page(Future(Components)) or a Future(Page(Components)).
I find it fascinating how frequently the best practices change, and how dogmatically people still want to follow best practices. As an industry, we spend absolutely incredible amounts of work refactoring working code into the new paradigm.
From the discussion:<p>> My favorite way to do data fetching is as close to the place where I am using the data.
React made it possible up until this change.<p>Well, yes, but we are nowadays in a situation where every component interacts directly with the state, or makes calls to the API (eg with the overuse of query), going against one of the architecture principles of react. It's like we're not building components, we're building component sized micro-ui.
As a React dev at $DAYJOB, how React remains at the top despite the existence of infinitely better alternatives like Vue or Svelte will forever be baffling to me
I thought these two short video demos by Ryan Florence of how this problem is mitigated in the upcoming react router 7 would be relevant for this topic.<p>- <a href="https://x.com/ryanflorence/status/1801383836250739057" rel="nofollow">https://x.com/ryanflorence/status/1801383836250739057</a><p>- <a href="https://x.com/ryanflorence/status/1801388170891903252" rel="nofollow">https://x.com/ryanflorence/status/1801388170891903252</a>
is it something similar to Deferable Views in Angular?
<a href="https://angular.dev/guide/defer#overview" rel="nofollow">https://angular.dev/guide/defer#overview</a>