DEV Community

Discussion on: State Management: How to tell a bad boolean from a good boolean

Collapse
 
mattpocockuk profile image
Matt Pocock

I'm assuming the data fetch is made when you first enter the page, meaning that the 'idle' state will likely only show for one render - so is not worth handling.

Love the look of elm but never tried it!

Collapse
 
lucas_castro profile image
Lucas Castro

Also, a common pattern that makes "idle" unnecessary on auto-loading states, is to start with the status as "loading" by default/definition.