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
It looks like a normal React component to consumers, but lifecycle methods behave in a very unexpected way
Just replacing that call with Portals works, but the great thing about portals - events bubble, and everything behaves like it's a single React tree - leads to problems for users who upgrade. Key events in a contextual menu, for example, now bubble up if they are not caught by the focus zone in the menu.
Maybe we can create something like an <EventBoundary> component that prevents that, and that could be used by components that use Layer but don't want the event bubbling behavior.
The text was updated successfully, but these errors were encountered:
The API used by the current
Layer
implementation:unstable_renderSubtreeIntoContainer
has a number of problems.Just replacing that call with Portals works, but the great thing about portals - events bubble, and everything behaves like it's a single React tree - leads to problems for users who upgrade. Key events in a contextual menu, for example, now bubble up if they are not caught by the focus zone in the menu.
Maybe we can create something like an
<EventBoundary>
component that prevents that, and that could be used by components that useLayer
but don't want the event bubbling behavior.The text was updated successfully, but these errors were encountered: