We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
The text was updated successfully, but these errors were encountered:
e716bd8
Show loading spinner if chart data isn't cached (fixes #5)
033a7a3
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: