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
Add: ParcelBoundary.mergeMode #110
Comments
No need to do this until #123 is done. The |
Make this set automatically to use |
Merge mode may also be set to |
Also need to provide a way for |
Merge mode should be able to be set.
replace
can clear the change buffer contents when a new parcel is received. Safe, but potentially user unfriendly as unsaved changes will be turfed.rebase
can retain the change buffer contents when a new parcel is received, and the buffer is applied on top of the new data. It can provide seamless merging of changes, but requires all parts of the parcel to be keyed correctly. Incorrect array re-keying is the biggest barrier and it might not be practical with arrays that delete or re-order, untilenty
schemas can allow data received from props to be identified correctly byParcelHoc
.merge
can retain parts of the change buffer contents when a new parcel is received, but only keep buffered changes that apply to pieces of data that did not change. Changes are typically done on leaves so we're probably safe to usefast-deep-equal
to ensure complex objects as leaf nodes are accurately assessed for changes, without suffering the performance penalty that a deep comparison by value can bring.The text was updated successfully, but these errors were encountered: