4 ms·
> React is all about efficiently taking state and rendering it. You sure about that? https://github.com/facebook/react/blob/main/packages/react/src/ReactFetch.
by idbehold 3y ago
> React is all about efficiently taking state and rendering it.
You sure about that? https://github.com/facebook/react/blob/main/packages/react/src/ReactFetch.js https://github.com/facebook/react/blob/main/packages/react/s...
- aidos 3y agoI’m searching for ReactFetch and not finding anything. My 10 years in React tell me that react isn’t a library focused on data fetching, maybe I’m missing something and I would happily discuss it if you point me towards some more information.
- dumbo-octopus 3y agopackages/react/src/ReactServer.js imports it.
- aidos 3y agoI don’t know what reactsever is either. Was looking more for some documentation to show what it is and how it’s used.
- throwaway290 3y agoThat's just patching fetch for suspense stuff, and suspense is literally about rendering state. Sure, not a pretty workaround, but nah react isn't trying to be in charge of fetching here.