mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 23:12:22 +03:00
Remove extra transition state setup.
This commit is contained in:
parent
c1bff7f730
commit
8483bf4a56
@ -361,17 +361,8 @@ update config appMsg model =
|
||||
)
|
||||
|
||||
else
|
||||
( { model
|
||||
| transition =
|
||||
url.path
|
||||
|> Path.fromString
|
||||
|> Loading model.nextTransitionKey
|
||||
|> Just
|
||||
, nextTransitionKey = model.nextTransitionKey + 1
|
||||
}
|
||||
, Batch
|
||||
[ BrowserPushUrl url.path
|
||||
]
|
||||
( model
|
||||
, BrowserPushUrl url.path
|
||||
)
|
||||
|
||||
Browser.External href ->
|
||||
|
13
src/Pages/Transition.elm
Normal file
13
src/Pages/Transition.elm
Normal file
@ -0,0 +1,13 @@
|
||||
module Pages.Transition exposing (..)
|
||||
|
||||
|
||||
type Transition
|
||||
= Idle
|
||||
| Submitting
|
||||
| Loading
|
||||
|
||||
|
||||
type LoadingState
|
||||
= Redirecting
|
||||
| Load
|
||||
| ActionRedirect
|
Loading…
Reference in New Issue
Block a user