Skip to content

Threshold on useElementVisibility is not considered #3728

@Archetipo95

Description

@Archetipo95

Describe the bug

I was trying to add a custom threshold while using useElementVisibility and looking at the source code I discovered that from the options parameter is not event imported (see here https://github.com/vueuse/vueuse/blob/84965f53edc73b221804de91e565ffdf71d1e28d/packages/core/useElementVisibility/index.ts#L21C8-L21C8)

Is there a motivation? I think it's not documented and I wasted some time trying to figure out why it was not working :/

Reproduction

https://stackblitz.com/edit/github-wmjdj9?file=app.vue

System Info

not important

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions