-
Notifications
You must be signed in to change notification settings - Fork 780
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
Normalize actions/events signatures. #190
Comments
Maybe it's better to just use It's also not unheard of. |
@dodekeract Good point! |
This is a breaking change, as you'll need to modify all your actions signature from: (state, data, actions) to (state, actions, data) @selfup @pedroborges @cdeutmeyer @lukejacksonn Are we okay with this? |
The difference between I also support @dodekeract's statement of using |
c29970c 🎉 |
tl;dr
Make all functions in the API follow the same signature:
(state, actions, data, emit)
Now
After
Tentative: Pass the
options
(the same from app(options)) object toloaded
as data, so it can match the proposed signature too. 🤔The text was updated successfully, but these errors were encountered: