Skip to content

Commit

Permalink
Do not default autoRetryTimeoutMs inside lazyResource
Browse files Browse the repository at this point in the history
Defaulting autoRetryTimeoutMs inside lazyResource is not necessary as
autoRetryOnRejection already does it.
  • Loading branch information
kyarik committed Nov 28, 2020
1 parent f7e6fa2 commit c7bebd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lazyResource/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const lazyResource = <T>(
loader: Loader<T>,
options: ResourceOptions = {},
): Resource<T> => {
const { autoRetry = false, autoRetryTimeoutMs = 3000 } = options;
const { autoRetry = false, autoRetryTimeoutMs } = options;

let promise: Promise<T> | null = null;
let error: Error | null = null;
Expand Down

0 comments on commit c7bebd4

Please sign in to comment.