Closed ricfang closed 4 years ago
@ManThursday I agree this is not backwards compatible. @ricfang can we add back the ActionPromise for now? Just have the export so that we don't break. Will make the upgrade a minor version release. I will remove the type in the next major release. (which hopefully will be soon).
@rctbusk added back the export and removed undefined
hey @siegcollado I noticed you changed (https://github.com/amplitude/redux-query/pull/176/files#diff-c7534d134a79c61c9c2a387721a367c692d97f2e18421782c58ae2f853a6d590R48-R50)
to
based on https://github.com/amplitude/redux-query/blob/master/packages/redux-query-react/src/hooks/use-mutation.js#L13-L15, I think the return type should be what was there before (never returning
undefined
)do you have any more context on that change?