I wrote a blog post to show off the new StaticHttp
feature in elm-pages
. You can use it to make HTTP requests where you can guarantee that the data is present and loads/decodes without errors before the user ever sees it! So there is no error or loading state in your code, that’s all handled at build-time by the elm-pages
framework. It’s an exciting step for elm-pages, and there are more features to come building on top of this API! Hope you enjoy.
https://elm-pages.com/blog/static-http
Feedback and questions are welcome in the #elm-pages channel on Slack!