Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BUG | useSupported | SSR evaluation might cause hydration error when component is created #4697

Copy link
Copy link
Closed
@UnluckyNinja

Description

@UnluckyNinja
Issue body actions

Describe the bug

I'm reading docs using Firefox 137, which supports Gamepad API, but the demo in current version of document displays "Gamepad is not supported on this device.".
And I checked older doc page, it correctly displays "No Gamepad Detected".
EDIT:
It only works correctly when opened with in-page links.
When open it with direct link (by clicking url below), it displays "Gamepad is not supported on this device.".

Current: https://vueuse.org/core/useGamepad/
Old: https://v11-3-0.vueuse.org/core/useGamepad/

Reproduction

https://vueuse.org/core/useGamepad/

System Info

Firefox 137

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.