epam / epam/deps-fe-usePolling

Update types for polling callback

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
invalid
Dominant language
TypeScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

According to declaration, usePolling accept callback prop as synchronous function
![image](https://github.com/user-attachments/assets/df39e27a-3b01-4e81-a58e-4688938a5581)
but later polling is trying to await it
![image](https://github.com/user-attachments/assets/86e9d6b7-5ae4-4cfb-a804-d8030ac652e9)

This not leads to any issues with usePolling, but sonarLint detects this stuff as an `issue`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.