Skip to content

Conversation

@TimLehner
Copy link
Contributor

  • this stops a warning being produced when testing which reads:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Description
A clear and concise description of what this PR does.
Use the more modern forwardRef for which works for both functionComponents and old class components

 - this stops a warning being produced when testing which reads:
> Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
 - Fixes Aljullu#67
@TimLehner
Copy link
Contributor Author

@Aljullu Are you best to review this?

@Aljullu Aljullu self-requested a review March 28, 2022 16:46
Copy link
Owner

@Aljullu Aljullu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing this improvement, @TimLehner!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jest test warning for components with trackWindowScroll

2 participants