timurtu
timurtu
```jsx {/*return a promise that returns a component here*/} ```
Think of all the conditional rendering you wouldn't have to do with the above approach because you know you have your data
I came up with an implementation https://github.com/timurtu/react-render-async
@faceyspacey thank you, I think it addresses the problem I was having which is when you want to set props based on async data for example, `react-native-vector-icons` can return an...
@faceyspacey I see what you're saying about route level, but wouldn't it be better to have smaller components that only rely on fetching the data they need while rendering everything...
@harut55555 idk it may just be me but this seems like a lot of code to do a get request and a post request
I think the current approach is use redux with tooling like redux observable or redux thunk
Why not download data/content instead of a component just curious?
Sounds like you want conditional rendering https://reactjs.org/docs/conditional-rendering.html
Okay, but I have been doing it without errors before, is it a new bug? Does this mean I need to move svgs into my src folder?