3 ms·
That’s… not react’s job? React is all about efficiently taking state and rendering it. We use mobx for managing state. We use Hasura for syncing. We use react
by aidos 3y ago
That’s… not react’s job?
React is all about efficiently taking state and rendering it.
We use mobx for managing state. We use Hasura for syncing. We use react for display. That works well for us and our requirements.
- 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.
- parhamn 3y agoI've never mentioned React, nor really alluded to it (though it is one piece of the complicated problem).
- aidos 3y agoI didn’t quite understand what you meant by “canary `use` hook solves” but you’ll have to excuse me for assuming you were talking about react.
- parhamn 3y agoMy mention of the use hook (which was first mentioned in a reply to me) was to point out how silly a response it is to offer a random react hook and as the solution to the complex problem I initially discussed. Do read the thread and my initial comment again.
- elwell 3y agoHasura + React is the dream. https://github.com/Vetd-Inc/vetd-app https://github.com/Vetd-Inc/vetd-app
- rizky05 3y ago[dead]