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
Somewhere between version 1.2.1 and 1.3.1, a breaking change was introduced that made it so that the renderEmptyState prop can no longer accept a component that contains a hook
🤔 Expected Behavior?
To be honest, I'm split on whether this expected or not. In RAC v1.2.1, renderDropIndicator on the drag and drop hooks for GridList had the same restriction. Not desirable then either though...
It would be nice to be able to pass standard components in both of these cases
😯 Current Behavior
Passing a component that utilizes react hooks will cause React to throw a rules of hooks error
Provide a general summary of the issue here
Somewhere between version 1.2.1 and 1.3.1, a breaking change was introduced that made it so that the
renderEmptyState
prop can no longer accept a component that contains a hook🤔 Expected Behavior?
To be honest, I'm split on whether this expected or not. In RAC v1.2.1,
renderDropIndicator
on the drag and drop hooks for GridList had the same restriction. Not desirable then either though...It would be nice to be able to pass standard components in both of these cases
😯 Current Behavior
Passing a component that utilizes react hooks will cause React to throw a rules of hooks error
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
https://codesandbox.io/p/sandbox/hidden-monad-r587g3
Version
RAC @ 1.3.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac & Windows
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: