4 ms·
> Loading (and error, etc) state should be the responsibility of the component doing the content rendering It's often divided in two: One container fetching th
by maaaats 10y ago
> Loading (and error, etc) state should be the responsibility of the component doing the content rendering
It's often divided in two: One container fetching the data, and a pure component rendering it.
- biscarch 10y agoI think my intent might have come across wrong here. The "states" aren't related to container/dumb components or data-fetching/selection logic. They're purely about rendering the state for a given segment of the page. Perhaps this article[0] might help convey my intent. It's more about how to render "we didn't get data from that one endpoint for this section of the page" or "we're waiting for the data to show up", etc. [0]: https://medium.com/swlh/the-nine-states-of-design-5bfe9b3d6d85 https://medium.com/swlh/the-nine-states-of-design-5bfe9b3d6d...