Update 06-views.md

This commit is contained in:
Ryan Haskell-Glatz 2021-04-30 09:45:53 -05:00 committed by GitHub
parent c3d37b0a4c
commit a93993ed3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,15 +76,15 @@ map fn view =
} }
``` ```
## View.empty ## View.none
When loading between pages, __elm-spa__ also needs a `View.empty` to be specified for your custom `View` type. When loading between pages, __elm-spa__ also needs a `View.none` to be specified for your custom `View` type.
For Elm UI, that is just `Element.none`: For Elm UI, that is just `Element.none`:
```elm ```elm
empty : View msg none : View msg
empty = none =
{ title = "" { title = ""
, element = Element.none , element = Element.none
} }