Closed bmaupin closed 4 years ago
Could it be possible to create 1 loading spinner component to cover all of these scenarios? It wouldn't be very elegant, but one idea would be to:
That would cover all the cases and show the spinner and/or message only when needed...
Problem with this approach: How can we differentiate between case 1 and 2? The UI would have no way of knowing if the API was stopped.
Create a component and use various states to indicate what should happen. For example, if it was used as a parent component and the chart was a child:
Cases
Ideas
Idea 1
Could it be possible to create 1 loading spinner component to cover all of these scenarios? It wouldn't be very elegant, but one idea would be to:
That would cover all the cases and show the spinner and/or message only when needed...
Idea 2Problem with this approach: How can we differentiate between case 1 and 2? The UI would have no way of knowing if the API was stopped.
Create a component and use various states to indicate what should happen. For example, if it was used as a parent component and the chart was a child: