Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/opvasger/loadable is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 2.0.0 found (31 same-name repos checked); no cached copy. Use another version.
Intuitive data-loading in Elm!
This project is an extension of the ideas from a very cool project/blog/talk!
User-interfaces (that I like) usually view initial-loads and reloads differently. Stale information can be viewed in cases where you are reloading a value or failed to.
type Loadable error value
= Idle
| Loading
| Success value
| Failure error
| Reloading value -- you can view the stale value while loading
| ReloadFailure error value -- you can view the stale value + reload errorThere's some quality-of-life stuff in here too, in case you're working with elm/http or dillonkearns/elm-graphql.