ChangeRequest

import {ChangeRequest} from 'dataparcels';
import {ChangeRequest} from 'react-dataparcels';
new ChangeRequest({
   action: Action|Action[] = []
});

When a change occurs, ChangeRequests are used by Parcels to describe what to change and how to change it. These ChangeRequests are propagated upward to the top level Parcel.

ChangeRequests contain an array of Actions to perform.

ChangeRequests can most often be accessed in handleChange and modifyChange functions. Most of the time these operate invisibly, and it’s extremely rare that you’ll create these yourself.

Properties

prevData

...

nextData

...

changeRequestMeta

...

originId

...

originPath

...

Methods

setChangeRequestMeta()

...

actions()

...

updateActions()

...

merge()

...

getDataIn()

...

hasValueChanged()

...

shouldBeSynchronous()

...

toJS()

...

toConsole()

...