Remove extra transition state setup.

This commit is contained in:
Dillon Kearns 2022-05-17 07:44:04 -07:00
parent c1bff7f730
commit 8483bf4a56
2 changed files with 15 additions and 11 deletions

View File

@ -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
View File

@ -0,0 +1,13 @@
module Pages.Transition exposing (..)
type Transition
= Idle
| Submitting
| Loading
type LoadingState
= Redirecting
| Load
| ActionRedirect