7
Views
2
Comments
[Auto Refresh] Timeout argument isn't clearly documented
auto-refresh
Reactive icon
Forge asset by Leonardo Pires
Application Type
Reactive

Thank you for creating this component.

I think you need to clarify that the Timeout argument will be interpreted as either seconds or milliseconds depending on its value.  In your init javascript, you have:

timer = setInterval(function() {    $actions.ActionRefresh();}, $parameters.Timeout > 10 ? $parameters.Timeout : $parameters.Timeout * 1000);

I was attempting to refresh a dashboard every 60 seconds, and then realized that it was flooding with a request every 60 MS, not seconds.

You might change it to just accept milliseconds and let the consumer make the calculation.  Or add a better description to the timeout argument.

2023-01-05 17-39-49
Leonardo Pires
Champion

Hi Jim,

Thanks for your feedback, i will fixed that in documentation and update component!

King Regards.

2023-01-05 17-39-49
Leonardo Pires
Champion

Updated...

King Regards.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.