upsiflu / less-ui

Write your views across several screen regions, and hide all Ui state in the Url.
https://package.elm-lang.org/packages/upsiflu/less-ui/latest
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Simplify `State` to `Url` #30

Closed upsiflu closed 1 year ago

upsiflu commented 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)

...and keep Link State a type alias for Url:

Url -> String
Url -> State
State -> Url
Link -> State -> State
Link -> Msg
Link -> Href
upsiflu commented 1 year ago

fixed with https://github.com/upsiflu/restrictive/commit/b9378dde02124b7dba9f29b2382349aaabbb6c8a#diff-7ba4809b212e9c2dd6384525c519da9dd700fa9d6ed113399de6d1e95940c508