Skip to content

Array of refs #13

@danilowoz

Description

@danilowoz

First of all, awesome package, pretty useful!

I would like to ask, is there any to use with an array of refs? Or any workaround?
I have a dynamic list and I want to know what is the current index which is in the viewport, does make sense?

So some ideas just came up in my mind:

const [arrayOfBoolean, arrayOfRefs] = useIsInViewport()

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions