Skip to content

useInViewport 弄一個triggerOnce的參數比較好 #2531

Open
@wildfrontend

Description

@wildfrontend

我需要trigger一次就行,sourcecode 沒法傳參數去關掉observer, 以避免多餘的state render
可參考https://www.npmjs.com/package/react-intersection-observer

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions