
035: elm-spa v6
Ryan Haskell-Glatz joins us to discuss the latest version of elm-spa, including authenticated pages and the updated file-based router.
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
- Ryan Haskell-Glatz (Twitter) (GitHub)
elm-spaV5 Docselm-spav5 episode
Key new features in v6
Provide/redirect protected custom type
Eject workflow
Can Eject not found page
Eject workflow stops generating files when they're ejected
Inspired by Nuxt
Page builder API (like browser sandbox)
No more int or string in url
elm-pages2.0 routing and splat routesUI namespace in elm-spa docs repo has a shared page helper function for building the shared header/footer
elm-spa 6 has fewer ignored arguments compared to v5 - now wired through in page top level function and you can wire to update, init, etc.
Effect pattern -
elm-spav6 has an ejectableEffectmoduleelm-real-worldSPA example (elm-spa-exampleusingelm-spaframework)#elm-spa-userschannel on the Elm Slack