1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 06:53:25 +02:00

Fix performance issue with renderPlaceholder (#5339)

This commit is contained in:
Joe Anderson
2023-03-06 16:38:07 +00:00
committed by GitHub
parent 4ab18e8998
commit 62f8ddd971
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'slate-react': patch
---
Fixes #5335. To prevent performance issues, make sure to wrap custom `renderPlaceholder` values in `useCallback`.