-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancement ✨New feature or requestNew feature or request
Description
Sometimes I want to distinguish three cases:
const data = db.things.get(id)
if (data._fetching) return <Spinner/>
if (data._notFound) return <NotFound/>
return <TheThing />
but sometimes I'm lazy and just want a spinner for two first cases, so it's be nice to just write
if (!data._ready) return <Spinner/>
were _ready === !_fetching && !_notFound
Metadata
Metadata
Assignees
Labels
enhancement ✨New feature or requestNew feature or request