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/parcelhoc updates #121

Merged
merged 18 commits into from
Oct 22, 2018

Conversation

dxinteractive
Copy link
Collaborator

@dxinteractive dxinteractive commented Oct 19, 2018

dataparcels

  • Add Parcel.batchAndReturn only on top level parcels
    • Calls batch() but returns the parcel instead of calling handleChange

react-dataparcels

  • BREAKING CHANGE ParcelHoc config.initialValue is now called ParcelHoc config.valueFromProps
  • BREAKING CHANGE ParcelHoc now uses getDerivedStateFromProps. Use https://github.com/reactjs/react-lifecycles-compat if you're on a React version earlier than 16.3.0
  • Add ParcelHoc config.shouldParcelUpdateFromProps which allows a ParcelHoc to replace its parcel's contents based on prop changes. At this point the only option is to completely replace all of the parcels contents and delete all key and meta information, depending on the outcome of a boolean test. In future there will be more options to allow partial changes, and to allow key and meta data to be retained.

@dxinteractive dxinteractive merged commit 1c18ff2 into release/playful-python Oct 22, 2018
@dxinteractive dxinteractive deleted the feature/parcelhoc-updates branch October 22, 2018 23:51
This was referenced Oct 23, 2018
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.

1 participant