patwolfe / arith

MIT License
1 stars 0 forks source link

Create LoadingScreen component #69

Open patwolfe opened 4 years ago

patwolfe commented 4 years ago

A bunch of the screens in the app are going to have points where they need to "load" while content is being fetched. Right now, a LoadingModal is conditionally rendered in places like LoginScreen based on a loading state boolean. This pattern is going to be repeated throughout the app and if there's a way we can extract that logic to reduce code duplication that'd be ideal. Here's an article that seems like it explains one way of doing this, but it doesn't necessarily have to be how we solve the issue.

patwolfe commented 4 years ago

Looked into this more and it seems like the conditional rendering of a Loading component is relatively common, so maybe this is more of a "nice to have"