krisajenkins / remotedata

Tools for fetching data from remote sources (incl. HTTP).
MIT License
249 stars 23 forks source link

Keep data when loading and on error #37

Open cdevienne opened 4 years ago

cdevienne commented 4 years ago

The goal here is to keep the data around when loading or when an error occurred so the UI can still display something. It is an alternative approach to what https://package.elm-lang.org/packages/calions-app/remote-resource/latest/RemoteResource tries to solve.

Since it breaks the API and makes the package less simple (but not too complex either I think) I intend to publish it under a new name, but if you are ever interested in this path I would happily take feedback to get the PR into shape for merge.

Cheers