This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0
Extension to the RemoteData package to deal with cached values
version 1.0.1
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.1
Committed At 2018-02-15 16:53:14 UTC
krisajenkins/remotedata 4.3.1 <= v < 5.0.0 4.5.0
elm-lang/http 1.0.0 <= v < 2.0.0 1.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

README

CachedRemoteData

An extension of krisajenkins/remotedata that includes support for cached values.

The krisajenkins/remotedata package provides the bricks for a simple state machine when dealing with remote data:

        NotAsked
           |
           v
    +-- Loading --+
    |             |
    v             V
Success a     Failure e

This package adds support for two additional states to refresh the data while keeping its previous value:

         NotAsked
            |
            v
     +-- Loading --+
     |             |
     v             V
 Success a     Failure e
   |   ^           |
   v   |           |
Refreshing a <-----+
   |   ^
   v   |
 Stale e a

Thanks

Thanks to krisajenkins for the remotedata package upon which this is built.

License

Copyright © IMBY 2018

Distributed under the MIT license to be consistent with krisajenkins/remotedata.