You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added support for Map a while ago, but there are some issues with it when you set a key to be an object or a function.
When it's a function, it renders empty and we get a warning from React about children being of type function. When it's an object, it breaks because children can't be an object.
Hi! 👋
Problem
We added support for
Map
a while ago, but there are some issues with it when you set a key to be an object or a function.When it's a function, it renders empty and we get a warning from React about
children
being of typefunction
. When it's an object, it breaks becausechildren
can't be an object.Demo
https://codesandbox.io/s/staging-worker-wrhqp
Solution
I'm not sure about what the expected output should be in this case, but if you want to, we can add a method to stringify object and functions, like:
The output to the failing logs on the demo would be:
The text was updated successfully, but these errors were encountered: