useParcelForm Request state
Addresses a missing piece of #181
react-dataparcels
- BREAKING CHANGE
ParcelBufferControl
class removed.useParcelBuffer
,ParcelBoundary
anduseParcelForm
all now return an identically shaped object in its place. This requires no code changes if you are not using theParcelBufferControl
named export. - Added request state info to
useParcelForm
#181useParcelForm.onChange
can already deal with promises and can handle what happens when they resolve and reject. Not passing the current state of the promise out of the hook would lead to people having to wrap their promises in something that can keep state based off of each promise,
so much better to include that functionality natively and have it test covered and standardised.- You probably wouldnt bother using it if you have some other thing like enty or async data stored in redux