You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 27, 2022. It is now read-only.
Triggers `cleanDependenciesCache` method of the provider each `interval` miliseconds while the component is "alive". It can be used in multiple components at the same time for the same provider. In that case, the used interval will be the lower one, and it will be recalculated each time a component is added or removed.
196
196
@@ -199,9 +199,10 @@ This hook can also be used with [Data Provider selectors][data-provider-selector
199
199
#### Arguments
200
200
201
201
*`provider`_(Object)_: [Data Provider][data-provider] provider or selector instance.
202
-
*`interval`_(Object)_: Interval in miliseconds to clean the provider dependencies cache. Default is 5000.
202
+
*`interval`_(Number)_: Interval in miliseconds to clean the provider dependencies cache. Default is 5000.
203
+
*`options`_(Object)_: Options object that will be passed as is to the `cleanCache` method of providers or `cleanDependenciesCache` method of selectors. Check the [data-provider API documentation](https://www.data-provider.org/docs/api-providers-and-selectors-methods) for further info. Options can be defined as second argument if interval is omitted.
This High Order Component works as the hook `usePolling` described above.
436
451
437
452
#### Arguments
438
453
439
454
*`provider`_(Object)_: [Data Provider][data-provider] provider or selector instance, or a function as described in the [withDataLoadingError HOC docs](#withdataloadingerrorprovider-custompropertiesnamescomponent)
440
-
*`interval`_(Object)_: Interval in miliseconds to clean the provider dependencies cache. Default is 5000.
455
+
*`interval`_(Number)_: Interval in miliseconds to clean the provider dependencies cache. Default is 5000.
456
+
*`options`_(Object)_: Options object that will be passed as is to the `cleanCache` method of providers or `cleanDependenciesCache` method of selectors. Check the [data-provider API documentation](https://www.data-provider.org/docs/api-providers-and-selectors-methods) for further info. Options can be defined as second argument if interval is omitted.
0 commit comments