Skip to content

Commit 6df9e79

Browse files
committed
fix: correct enum casing for IterableRetryBackoff and update usage in IterableAppProvider
1 parent e21df58 commit 6df9e79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/src/hooks/useIterableApp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const IterableAppProvider: FunctionComponent<
152152
config.retryPolicy = {
153153
maxRetry: 5,
154154
retryInterval: 10,
155-
retryBackoff: IterableRetryBackoff.Linear,
155+
retryBackoff: IterableRetryBackoff.linear,
156156
};
157157

158158
config.onJwtError = (authFailure) => {

src/core/enums/IterableRetryBackoff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export enum IterableRetryBackoff {
77
*
88
* EG: 2 seconds, 4 seconds, 6 seconds, 8 seconds, etc.
99
*/
10-
Linear = 'LINEAR',
10+
linear = 'LINEAR',
1111
/**
1212
* Exponential backoff (each retry will wait for an interval that increases exponentially)
1313
*
1414
* EG: 2 seconds, 4 seconds, 8 seconds, 16 seconds, etc.
1515
*/
16-
Exponential = 'EXPONENTIAL',
16+
exponential = 'EXPONENTIAL',
1717
}

0 commit comments

Comments
 (0)