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

Timer is not updated when startMs is changed during re-rendering process #3300

Open
1 of 3 tasks
blasdfaa opened this issue Feb 11, 2025 · 0 comments
Open
1 of 3 tasks
Labels

Comments

@blasdfaa
Copy link

blasdfaa commented Feb 11, 2025

Description

During testing, when re-rendering and updating the startMs value, the timer doesn’t react to the change.

I noticed this behavior when my state with startMs changed, and the timer value ended up like this. I couldn't reproduce this exact effect in tests, but it's possible that this issue is related to updating startMs during re-renders.

Image

Expected behavior

When the startMs value is updated, the timer updates correctly and starts counting from the new value.

Link to Reproduction (or Detailed Explanation)

https://stackblitz.com/edit/vitejs-vite-vt1zc8ut?file=src%2FApp.test.tsx

Steps to Reproduce

  1. Go to reproduction link
  2. Open new terminal window
  3. Run "npm run test"
  4. See error

Ark UI Version

4.9.1

Framework

  • React
  • Solid
  • Vue

Browser

Google Chrome

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant