Skip to content

toast.drawer - Function components cannot be given refs. #122

Description

@alaconda

Love this library. One of the most beautiful toast libraries out there.

Just noticed this warning...

Whenever we call toast.drawer(...), it is giving a warning of "Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?".

We are not passing in any refs, it appears to be internal. Stacktrace points to ToastContainer2.

All other toast.success, toast.error works fine without any warnings.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions