Skip to content

Commit

Permalink
docs: clarify own refresh mechanism (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Oct 16, 2024
1 parent 075d119 commit 18621fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,6 @@ If `bootstrapOverride` is `false` any local cached data will not be overridden u

## Manage your own refresh mechanism

You can opt out of the Unleash feature flag auto-refresh mechanism and metrics update by settings the `refreshInterval` and/or `metricsInterval` options to `false`.
You can opt out of the Unleash feature flag auto-refresh mechanism and metrics update by settings the `refreshInterval` and/or `metricsInterval` options to `0`.
In this case, it becomes your responsibility to call `updateToggles` and/or `sendMetrics` methods.
This approach is useful in environments that do not support the `setInterval` API, such as service workers.

0 comments on commit 18621fc

Please sign in to comment.