You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming #275 isn't closed in favor of #250, I should figure out the API for redux-resource-fetch, making the assumption that AbortController is supported.
// There is now only one method!// The first argument determines which CRUD action it iscrudRequest('read',{url: '/pasta/pls',// These are options to configure the XHR requestfetchOptions: {credentials: 'include',signal: abortController.signal},// These are properties that are merged into the start and end action by defaultactionProperties: {resourceName: 'books',mergeMeta: false},// same as what exists todaytransformData(data){returnbody.data;}}).then((action,body)=>dispatch(action)(action,err)=>dispatch(action));
The text was updated successfully, but these errors were encountered:
Assuming #275 isn't closed in favor of #250, I should figure out the API for redux-resource-fetch, making the assumption that AbortController is supported.
The popular GitHub fetch polyfill may soon support this: JakeChampion/fetch#547
One possibility based on #275 :
The text was updated successfully, but these errors were encountered: