opvasger/loadable/2.1.0

NOTE: the latest version is 3.2.1

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.1.0 found (31 same-name repos checked); no cached copy. Use another version.

Details

Elm Loadable

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 error

There's some quality-of-life stuff in here too, in case you're working with elm/http or dillonkearns/elm-graphql.