[core] Standardize error messages across components
Opened this issue · 0 comments
michaldudak commented
Create a utility to format a message and show an error to have consistency.
The most common case for now is a missing context. Errors should be handled in hooks (use*Context), optionally allowing the context to be absent, as in:
base-ui/packages/mui-base/src/Menu/Root/MenuRootContext.ts
Lines 19 to 28 in c66dcb1
Search keywords: