Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#5610·vueuse

BUG | `useIdle` | lastActive is not updated upon reset()

Author: andrewspyCreated Aug 27, 2026Updated Sep 20, 2026
Labelsgood first issue

Describe the bug

For the reproduction,

  • Using only click event to break the idle stage
  • A reset() is triggered during mouseenter inside <div>

Expected result: inactive should be reset to 0s after reset()

Actual result: inactive is not reset to 0s after reset(), however idle works as expected.

Reproduction

https://playground.vueuse.org/?vueuse=14.4.0#eNp9U8tu2zAQ/JWFLpYBR3ZeF8NxkxYJ4AJ9oM2tKgpZWttMKFIgl4oLQ//eJVnZalDEJ3N3NJyZXR6Su6bJWofJPFnY0oiGwCK5BmShtjd5QjZPlrkSdaMNwQGcxVUlcRL+KELTFvJBheOjqNFSUTfQwcboGka3TMyNaakNjgYkpa4bR1gdgYzjfq5KrawHiHCFLCzdlSRa/m+QZTH+pleQXs9mswkcsEVFdg4/RqUU5fPoZzc+MSn9Er84aksPYMsdVk6imUO5hpvlv1bScj2Bc+Yew5DJK6oetGG6Xn2ajv3Xh1wB1zyoCGIZ8qmgXbaRWps0ZQ0ZMzuEs4GjWBrDNN7lLwI2Sc6onmYJM3jXH+Ywy1UUtJjGQfFY+EBYN7Ig5BPAQmlCKPkay7Or12cXYXrAP6+9wtrrNAUJraBxptGWs6UdBn9AnJJ2bNb6JQDSsFgvr+1iul6CUIwTNpJ5Ikgr3BROEpzXQo2zcP/UC4hSKtG+UgK3teaseV5ouDiILwaoJWZSb9PRCTZix74dxp+GQ3e05NdgDoe4LtB1UQHfexSwXKmY35ydHNUQ7umsMaIuzG8m+0sQptt1we0rFkacJseYvr2YDtJPJvxY2MZGbLMnqxW/qOAtT/zCCN63L43PnR8Ui44O8qSQUr98DDUyDid9nXe0fP5P/cnufS1PvvpITIt5cuxRYbZIsX3//TO7HDRr7Xf+zeY35BE4rzHC3jvFuZgBLqhdhWcs1PbR3u8Jle1NeaFhQgGfJ/yqP7xh/ST3MruKk1Udp/irReM5OcDL7Dq7uki6P+qljNk=

System Info

bash
Windows 11, Google Chrome v151.0.7922.138, vueuse v14.4.0, vue v3.5.42

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.
  • The provided reproduction is a minimal reproducible example of the bug.

Source: vueuse/vueuse

View original on GitHubView discussion on GitHub