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.
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"
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.