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
Introducing experimental `asProvider`, `asStandalone`, and `<X.Outlet />` for `<UserButton />` and `<OrganizationSwitcher />` components.
6
+
-`asProvider` converts `<UserButton />` and `<OrganizationSwitcher />` to a provider that defers rendering until `<Outlet />` is mounted.
7
+
-`<Outlet />` also accepts a `asStandalone` prop. It will skip the trigger of these components and display only the UI which was previously inside the popover. This allows developers to create their own triggers.
Add experimental standalone mode for `<UserButton />` and `<OrganizationSwitcher />`.
7
+
When `__experimental_asStandalone: true` the component will not render its trigger, and instead it will render only the contents of the popover in place.
8
+
9
+
APIs that changed:
10
+
- (For internal usage) Added `__experimental_prefetchOrganizationSwitcher` as a way to mount an internal component that will render the `useOrganizationList()` hook and prefetch the necessary data for the popover of `<OrganizationSwitcher />`. This enhances the UX since no loading state will be visible and keeps CLS to the minimum.
11
+
- New property for `mountOrganizationSwitcher(node, { __experimental_asStandalone: true })`
12
+
- New property for `mountUserButton(node, { __experimental_asStandalone: true })`
0 commit comments