1
0
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:
Dylan Schiemann
2021-09-07 05:00:48 -07:00
committed by GitHub
parent dd752df11d
commit 3dd74dd58d
2 changed files with 6 additions and 1 deletions

View File

@@ -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.`
)
}