-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux state should be initialized by init
#103
Comments
published with v4.0.0. sorry that this took so long. |
That PR unfortunately doesn't solve this issue, just part of it. Look at this comment for more info 🙂 |
Oups, sorry. We could use decode : Json.Encode.Value -> Model
decode flags =
-- ... |
It's been a while since I dug into the code and we're unfortunately not using this in our project anymore, so I'd have a hard time looking into the proper solution :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Redux state should be initialized with defaults, as specified by init, e.g., in this example app (basically the same as in the README), the Redux state should be
{ ..., elm: 0, ...}
before any actions, but it's{ ..., elm: {}, ...}
until@@elm/increment
, at which point it turns into{ ..., elm: 1, ...}
.The text was updated successfully, but these errors were encountered: