-
-
Notifications
You must be signed in to change notification settings - Fork 308
Closed
Labels
component: toastChanges related to the toast component.Changes related to the toast component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.
Description
Bug report
Current behavior
import { Toast } from '@base-ui-components/react/toast';
// toast.ts
export const toastManager = Toast.createToastManager();
// Toast.tsx
import { toastManager } from './toast.ts';
export const ToastProvider = () => (
<Toast.Provider toastManager={toastManager}>
{/* ... */}
</Toast.Provider>
);Error:
Warning: Failed prop type: The prop
toastManager.removeis marked as required inToastProvider2, but its value isundefined.
Expected behavior
No such error.
Base UI version
1.0.0-alpha.8
Which browser are you using?
Chrome
Which OS are you using?
Mac OS
Metadata
Metadata
Assignees
Labels
component: toastChanges related to the toast component.Changes related to the toast component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.