From 1a0b97f8c7ff983028cdfe669a6ac01e36ac3561 Mon Sep 17 00:00:00 2001 From: Ryan Haskell-Glatz Date: Sat, 17 Jul 2021 11:47:29 -0500 Subject: [PATCH] Update 03-storage.md fix issue #99 --- docs/public/content/examples/03-storage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/public/content/examples/03-storage.md b/docs/public/content/examples/03-storage.md index 7ddb6f9..ceaeb1d 100644 --- a/docs/public/content/examples/03-storage.md +++ b/docs/public/content/examples/03-storage.md @@ -16,14 +16,14 @@ Let's create a simple interactive app, based on the official Elm [counter exampl elm-spa add / sandbox ``` -This will stub out the `init`, `update`, and `view` function for us, and wire them together with `Page.static` like this: +This will stub out the `init`, `update`, and `view` function for us, and wire them together with `Page.sandbox` like this: ```elm -- src/Pages/Home_.elm page : Shared.Model -> Request -> Page.With Model Msg page = - Page.static + Page.sandbox { init = init , update = update , view = view @@ -308,7 +308,7 @@ That's all for `src/Shared.elm`. The last step is to upgrade our homepage to sen ### Upgrading Home_.elm -To gain access to `Cmd msg`, we'll start by using `Page.element` instead of `Page.static`. The signature of our `init` and `update` functions will need to change to handle the new capabilities: +To gain access to `Cmd msg`, we'll start by using `Page.element` instead of `Page.sandbox`. The signature of our `init` and `update` functions will need to change to handle the new capabilities: Our `Model` no longer needs to track the state of the application. This means the `Home_.init` function won't be doing much at all: