mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 10:44:02 +02:00
Update error message for useSlate (#4493)
* Update error message for useSlate fixes #4479 * Add changeset
This commit is contained in:
5
.changeset/curly-mails-allow.md
Normal file
5
.changeset/curly-mails-allow.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'slate-react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update error message for useSlate
|
@@ -18,7 +18,7 @@ export const useSlate = (): Editor => {
|
|||||||
|
|
||||||
if (!context) {
|
if (!context) {
|
||||||
throw new Error(
|
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