Releases: ianstormtaylor/slate
Releases · ianstormtaylor/slate
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Patch Changes
- #5908
06b21fdc
Thanks @nabbydude! - Fixed issue on android where deleting forward at the end of a block would delete the first character in the next block instead of the linebreak
[email protected]
[email protected]
Minor Changes
- #5885
c56a98fd
Thanks @felixfeng33! - - RemoveignoreNonSelectable
option from positions,before,after,nodes.- Fix move behavior when encounter non-selectable inline voids.
Patch Changes
- #5890
9862ae71
Thanks @joblolin95! - Handle backspace correctly for grapheme clusters in Burmese, Hindi, Khmer, Malayalam, Oriya, Punjabi, Tamil, and Telugu.
[email protected]
[email protected]
Minor Changes
- #5871
fb87646e
Thanks @12joan! - - Implement experimental chunking optimization (disabled by default, see https://docs.slatejs.org/walkthroughs/09-performance).- Add
useElement
anduseElementIf
hooks to get the current element. - BREAKING CHANGE: Decorations are no longer recomputed when a node's parent re-renders, only when the node itself re-renders or when the
decorate
function is changed.- Ensure that
decorate
is a pure function of the node passed into it. Depending on the node's parent may result in decorations not being recomputed when you expect them to be. - If this change impacts you, consider changing your
decorate
function to work on the node's parent instead. - For example, if your
decorate
function decorates acode-line
based on the parentcode-block
's language, decorate thecode-block
instead. - This is unlikely to result in any performance detriment, since in previous versions of
slate-react
, the decorations of all siblings were recomputed when one sibling was modified.
- Ensure that
- Increase minimum
slate-dom
version to0.116.0
. - Deprecate the
useSlateWithV
hook - PERF: Use subscribable pattern for
useSlate
,useSelected
and decorations to reduce re-renders.
- Add