Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Duplicated onInterval calls in useTable and unresponsive overtimeOptions.interval prop #6625

Open
aliemir opened this issue Jan 2, 2025 · 0 comments · May be fixed by #6626
Open

[BUG] Duplicated onInterval calls in useTable and unresponsive overtimeOptions.interval prop #6625

aliemir opened this issue Jan 2, 2025 · 0 comments · May be fixed by #6626
Assignees
Labels
bug Something isn't working

Comments

@aliemir
Copy link
Member

aliemir commented Jan 2, 2025

Describe the bug

In some hooks of Refine, overtimeOptions are ignored and there are duplicated overtime intervals created.

Steps To Reproduce

  1. mount useTable and set overtimeOptions.interval to 2000
  2. Log the whole return type of useTable
  3. Notice that logs printed every 1000ms regardless the set interval
  4. Check query.overtime to see the duplicated overtime call and response.

Expected behavior

There are duplicated calls of useLoadingOvertime made in the data hooks used by the extension hooks such as useTable, those are ignoring the overtimeOptions passed to the hook and causes independent updates

Packages

  • @refinedev/core

Additional Context

No response

@aliemir aliemir added the bug Something isn't working label Jan 2, 2025
@aliemir aliemir added this to the January 2025 🎄 milestone Jan 2, 2025
@aliemir aliemir self-assigned this Jan 2, 2025
@aliemir aliemir linked a pull request Jan 2, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant