WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 6aace0d

Browse files
committed
Fix docs on useSlateSelector
1 parent aecc957 commit 6aace0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/libraries/slate-react/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Get the current editor object from the React context. A version of useSlate that
4646

4747
Get the current editor selection from the React context. Only re-renders when the selection changes.
4848

49-
#### `useSlateSelector<T>(selector: (editor: Editor): T, equalityFn?: (a: T, b: T) => boolean): T`
49+
#### `useSlateSelector<T>(selector: (editor: Editor) => T, equalityFn?: (a: T, b: T) => boolean): T`
5050

5151
Similar to `useSlateSelection` but uses redux style selectors to prevent rerendering on every keystroke.
5252

0 commit comments

Comments
 (0)