Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Function components cannot be given refs. #637

Open
VisetDev opened this issue Mar 28, 2024 · 0 comments
Open

Warning: Function components cannot be given refs. #637

VisetDev opened this issue Mar 28, 2024 · 0 comments

Comments

@VisetDev
Copy link

When trying to select any element from any collection I got:

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 SlotClone.
at o (http://localhost:5001/node_modules/.vite/deps/@firecms_cloud.js?v=b4d01b98:39322:12)
at http://localhost:5001/node_modules/.vite/deps/@firecms_cloud.js?v=b4d01b98:5890:11
at http://localhost:5001/node_modules/.vite/deps/@firecms_cloud.js?v=b4d01b98:5867:11
at http://localhost:5001/node_modules/.vite/deps/@firecms_cloud.js?v=b4d01b98:5959:13
[...]

The warning arises when selecting the checkbox:

image

It breaks the view. next time I open the collection, state does not reflects selected and the table looks wrong:

image

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

No branches or pull requests

1 participant