Sign in
Log inSign up

What is the best way to differentiate between a loading and a no data state?

Ankit Singhaniya's photo
Ankit Singhaniya
·Mar 21, 2017

I was wondering how people solve this trivial problem. Let's say you want to show a graph after getting the data from the network call. The graph should show a loading state while the data has not arrived, should show the graph if the data has arrived and if the arrived data is empty show a no data state.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct