StoicBuilder

HandbookVI the AtriumEmpty, loading and error states

VIthe Atrium, Design the experience

Empty, loading and error states

1 min readUpdated 28 November

In plain words

Every screen that loads data needs four designs, not one: loading while it waits, empty when there's nothing yet, error when it fails, and the normal view.

Where you see it

An empty inbox that says "You're all caught up", grey skeleton boxes while Chirp's feed loads, a "Couldn't load posts" banner with a Retry button when the network drops. A brand-new Chirp account sees the empty state before anything else.

components/Feed.tsxbrowser
if (isLoading) return <FeedSkeleton />;if (error) return <ErrorBanner message="Couldn't load posts." onRetry={refetch} />;if (posts.length === 0) return <EmptyState text="No posts yet. Follow a few people to fill your feed." action="Find people" />;return <PostList posts={posts} />;
Four states, checked in this order. Loading comes first, so "No posts yet" never flashes while posts are on their way.

What goes wrong

  1. Showing the empty state while loading

    "No notes yet" flashes for a second before the notes arrive, and some people panic that their work is gone.

  2. Treating an error as empty

    The request fails, the code falls back to an empty list, and the screen says there's nothing here. The user believes it, and nobody sees the error.

  3. An empty state with no way forward

    A blank page that says "Nothing here" leaves new users stuck. Say what will appear, and give them the button that makes it appear.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Give the feed four states: a loading skeleton, an empty state with one line of explanation and a Find people button, an error message with a Retry button, and the normal list. Tell me how to see each state on my own machine.

Quick check

Sign in to earn +10 XP for it

The feed loads without errors, but a new Chirp user sees only a blank white area where posts would be. Which state is missing?

Got a prompt that touches Empty, loading and error states?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.