Skip to content

Commit 0b307fa

Browse files
committed
Update useContinuousRetry documentation
1 parent 8f3af9b commit 0b307fa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

usehooks.com/src/content/hooks/useContinuousRetry.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
2727
### Parameters
2828

2929
<div class="table-container">
30-
| Name | Type | Description |
31-
| -------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
32-
| callback | function | The callback function to be executed repeatedly until it returns a truthy value. |
33-
| interval | number | (Optional) The interval in milliseconds at which the callback function is executed. Default value is 100 milliseconds. |
30+
| Name | Type | Description |
31+
| -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------|
32+
| callback | function | The callback function to be executed repeatedly until it returns a truthy value. |
33+
| interval | number | (Optional) The interval in milliseconds at which the callback function is executed. Default value is 100 milliseconds. |
34+
| options | object | (Optional) An object containing a `maxRetries` property which tells `useContinuousRetry` the maximum amount of retry attempts it should make before stopping |
3435
</div>
3536

3637
### Return Value

0 commit comments

Comments
 (0)