Closed upsiflu closed 1 year ago
It might simplify things to move the previous-state cache into the application module...
{ state : State, previousState : State }
(We might consider setting previousState to = state in the init case in order to simplify decision trees)
previousState
= state
init
...and keep Link State a type alias for Url:
Url -> String Url -> State State -> Url Link -> State -> State Link -> Msg Link -> Href
fixed with https://github.com/upsiflu/restrictive/commit/b9378dde02124b7dba9f29b2382349aaabbb6c8a#diff-7ba4809b212e9c2dd6384525c519da9dd700fa9d6ed113399de6d1e95940c508
It might simplify things to move the previous-state cache into the application module...
(We might consider setting
previousState
to= state
in theinit
case in order to simplify decision trees)...and keep Link State a type alias for Url: