Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

Fix console warning about refs & the Chakra Popover Trigger #152

Open
danhannigan opened this issue Oct 4, 2022 · 2 comments
Open

Fix console warning about refs & the Chakra Popover Trigger #152

danhannigan opened this issue Oct 4, 2022 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@danhannigan
Copy link
Member

Here's the warning that comes through:

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

Check the render method of `ForwardRef(LinkComponent)`.
    at PopoverTrigger

Likely something with React 18 and Chakra, and how they're playing together.

@danhannigan danhannigan added bug Something isn't working good first issue Good for newcomers labels Oct 4, 2022
@dougmellon
Copy link
Contributor

Currently working on this @danhannigan

@danhannigan
Copy link
Member Author

Awesome, thanks @dougmellon! Let me know if you need any clarification

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants