
Episode 58
058: Elm Store Pattern
Martin Janiczek joins us to discuss a pattern for declaratively managing loading state for API data across page changes.
June 6, 20221h 18m
Audio is streamed directly from the publisher (cdn.simplecast.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
- Martin Janiczek (github) (twitter) (youtube)
- Martin's Store Pattern talk
- Store Pattern example GitHub repo
- Gizra fetch pattern blog post elm-fetch, and Easier HTTP Requests to Reason with
- Gizra
elm-fetchpackage RemoteDatapackage- RemoteData blog post How Elm Slays a UI Antipattern
elm-program-testis useful for integration testing data loadingelm-suspenseproof-of-concept repo- Okay to use Store pattern for mutations, just kick them off outside of
dataRequests - Defunctionalization
- Wrap early, unwrap late
- Derive from source of truth instead of storing derived data