Is your improvement request related to a specific problem in the code or project structure? Please describe. šØāš»
We have quite a fair bit of sprinkled loading code around. All of which should be combined into a single component.
Describe the improvement or refactor you would like šÆ
Create a Loading component, that renders only spinner when the loading input is true, and otherwise render the underlying details.
It would also make sense to make the underlying details an optional part, in case we want to render a loading indicator as a standalone thing (for example inside a button, next to a piece of text)
Explain why this improvement or refactor is beneficial šļø
This will significantly reduce the amount of if-else statements in the code, and unify every loading development experience.
Is your improvement request related to a specific problem in the code or project structure? Please describe. šØāš» We have quite a fair bit of sprinkled loading code around. All of which should be combined into a single component.
Describe the improvement or refactor you would like šÆ Create a Loading component, that renders only spinner when the loading input is
true
, and otherwise render the underlying details.It would also make sense to make the underlying details an optional part, in case we want to render a loading indicator as a standalone thing (for example inside a button, next to a piece of text)
Explain why this improvement or refactor is beneficial šļø This will significantly reduce the amount of if-else statements in the code, and unify every loading development experience.
Describe alternatives you've considered š none
Additional context or comments