mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-08-17 00:10:27 +03:00
Update 06-views.md
This commit is contained in:
parent
c3d37b0a4c
commit
a93993ed3b
@ -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`:
|
||||
|
||||
```elm
|
||||
empty : View msg
|
||||
empty =
|
||||
none : View msg
|
||||
none =
|
||||
{ title = ""
|
||||
, element = Element.none
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user