We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found this option in the bundle but I don't find any doc
Exists a better way to set this option ...
const promise = ({ apiFetch }) => { return apiFetch('resources') } const bundle = createAsyncResourceBundle({ name: 'resource', getPromise: promise }) bundle.doFetchResource =() => args => { const { dispatch } = args dispatch({ type: 'RESOURCE_FETCH_STARTED' }) return promise(args).then( payload => { dispatch({ type: 'RESOURCE_FETCH_FINISHED', payload, merge: true // <- option }) }, error => { dispatch({ type: 'RESOURCE_FETCH_FAILED', error }) } ) }
The text was updated successfully, but these errors were encountered:
@jvega good point, would be happy for a PR from someone adding this.
Sorry, something went wrong.
No branches or pull requests
I found this option in the bundle but I don't find any doc
Exists a better way to set this option ...
The text was updated successfully, but these errors were encountered: