Skip to content

HOC doesn't track scroll position - scrollPosition is always null #42

@ndtreviv

Description

@ndtreviv

Bug description
I'm wrapping a component in trackScrollPosition, and it's adding scrollPosition to the component props, but it's always null.

To Reproduce
See it here: https://stackblitz.com/edit/react-x6zjfs

Expected behavior
I'd expect scrollPosition to update whenever the window scrolls.

Screenshots
N/A

Technical details:

  • Package version: 1.3.2
  • Server Side Rendering? No
  • Device: Desktop
  • Operating System: Mac OS
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions