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
However, not providing this prop causes an infinite render loop. The result will look fine, but a check of the console will show that it never stops rendering:
Error: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
This bug is really hard to figure out since there's no hints as to what causes the issue.
Even just setting the prop to an empty object (<Slots context={{}}>) fixes the problem.
The text was updated successfully, but these errors were encountered:
The
context
prop on theSlots
component generated bycreateSlots
is marked as optional:react/src/utils/create-slots.tsx
Line 31 in 2b5c86e
However, not providing this prop causes an infinite render loop. The result will look fine, but a check of the console will show that it never stops rendering:
This bug is really hard to figure out since there's no hints as to what causes the issue.
Even just setting the prop to an empty object (
<Slots context={{}}>
) fixes the problem.The text was updated successfully, but these errors were encountered: