mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 02:03:59 +02:00
Update error message for useSlate (#4493)
* Update error message for useSlate fixes #4479 * Add changeset
This commit is contained in:
@@ -18,7 +18,7 @@ export const useSlate = (): Editor => {
|
||||
|
||||
if (!context) {
|
||||
throw new Error(
|
||||
`The \`useSlate\` hook must be used inside the <SlateProvider> component's context.`
|
||||
`The \`useSlate\` hook must be used inside the <Slate> component's context.`
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user