-
Notifications
You must be signed in to change notification settings - Fork 0
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/hooks reorganised #219
Merged
dxinteractive
merged 32 commits into
release/crazy-constrictor
from
feature/hooks-reorganised
May 30, 2019
Merged
Feature/hooks reorganised #219
dxinteractive
merged 32 commits into
release/crazy-constrictor
from
feature/hooks-reorganised
May 30, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dxinteractive
force-pushed
the
feature/hooks-reorganised
branch
from
May 20, 2019 14:20
aa3a813
to
ca1dce7
Compare
dxinteractive
force-pushed
the
feature/hooks-reorganised
branch
from
May 21, 2019 13:08
ca1dce7
to
368bd7c
Compare
dxinteractive
force-pushed
the
feature/hooks-reorganised
branch
from
May 22, 2019 10:06
5faa66e
to
05f784d
Compare
- now exported full lowercase (validation, not Validation) - now returns a parceldata updater directly, instead of an object with a modifyBeforeUpdate function on it - now falsifies any meta._submit keys. this will be used by useParcelBuffer prevent submission of invalid forms
dxinteractive
force-pushed
the
feature/hooks-reorganised
branch
2 times, most recently
from
May 28, 2019 03:45
5605c2a
to
aab5c08
Compare
parcels know of each others existence via the registry, which each parcel adds itself too. this is so even parcels that havend re-rendered in forever can have a reference to the newest version of their parent parcel. boundary splitting is making sure that when a parcel boundary is used, that they each have their own registry, so parel boundaries dont accidentally share updates telepathically between each other. right now this is a tad broken with hooks. ill fix it soon, but the frequency that we'll hit this (i.e. never) means id rather uncover this logical hole for a bit to get hooks out
rather than an object with a modifyBeforeUpdate function on it it can also now block submit actions (where submit actions use meta._submit like upcoming useParcelBuffer does), and also not show errors until a submit attempt has been made
a few breaking changes here, will be documented in the pr
dxinteractive
force-pushed
the
feature/hooks-reorganised
branch
from
May 29, 2019 13:54
ff9c533
to
a6c273c
Compare
allanhortle
approved these changes
May 30, 2019
|
||
const internalBuffer = useParcelBufferInternalBuffer({ | ||
onReset: () => setOuterParcel(null), | ||
// ^ resets by ecreating innerParcel from outerParcel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #204 #215 #205 #213
Hooks are finally here!
dataparcels
Validation
renamed tovalidation
to match all other function exports{modifyBeforeUpdate: Function}
meta.invalidList
useParcelForm
anduseParcelBuffer
react-dataparcels
useParcelState
hook (similar to ParcelHoc)useParcelBuffer
hook (similar to ParcelBoundaryHoc)useParcelForm
hook (new hook to provide pre-build form-like behaviours)useParcelBuffer
debugBuffer
is gonedebugParcel
is goneonCancel
is goneonRelease
is gonemodifyBeforeUpdate
is deprecated, superseded bybeforeChange
, now accepts non-array functionsParcelBufferControl
, not aParcelBoundaryControl
ParcelHoc
andParcelBoundaryHoc
are deprecateddataparcels-docs
dcme-gatsby
Docs: add left and right navs #213