Skip to content
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

Feature/on submit #229

Merged
merged 4 commits into from
Jun 21, 2019
Merged

Conversation

dxinteractive
Copy link
Collaborator

@dxinteractive dxinteractive commented Jun 20, 2019

react-dataparcels

  • BREAKING CHANGE useParcelForm's API has had some renaming
    • useParcelForm onChange is now useParcelForm onSubmit
    • useParcelForm onChangeUseResult is now useParcelForm onSubmitUseResult
    • useParcelForm's returned onChangeStatus is now submitStatus

The reason is because the action is being referred to as submit
everywhere else. Even the function that triggers the submit is
called "submit". This was called onChange, because from the point of view of
the internal useParcelState hook it is just a "change", and that variable name just flew out the window but the name should really reflect how its used

Also onChangeUseResult > onSubmitUseResult
and onChangeStatus > submitStatus

The reason is because the action is being referred to as submit
everywhere else. Even the function that triggers the submit is
called "submit". This was called onChange, because according to
the internal useParcelState hook it is just a change, but the
name should really reflect how its used
@dxinteractive dxinteractive merged commit 94c3a83 into release/scientific-salamander Jun 21, 2019
@dxinteractive dxinteractive deleted the feature/on-submit branch June 21, 2019 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants