Skip to content

Commit

Permalink
fix: useAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
墨尘 committed Jul 24, 2020
1 parent dc3596b commit c97d246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/reduxLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export function useAPICommon<
mode === 'paramsMatch' ? { request: requestParams } : undefined,
);
if (!result.id) {
fetcher(requestParams, otherExtra).catch();
fetcher(requestParams, otherExtra).catch(() => undefined);
}
if (updateTiming === 'initial' || (result.id && !result.isPending)) {
setFilteredData(pre => {
Expand Down

0 comments on commit c97d246

Please sign in to comment.