Repository navigation
Patch Changes
-
#366
9fc401eThanks @stipsan! - Render faster, on the first render and whenvaluechanges- Styled list items (a list item with a
styleother thannormal) are rendered once instead of twice. Deeply nested styled lists used to double their work at every level. Missing components inside them are now reported once instead of twice. - Blocks made only of unmarked text skip building a marks tree.
- In client components, blocks that are the same object at the same position as in the previous render are not rendered again. This is the same assumption React makes for props: change a block by passing a new object, not by mutating it in place. Blocks with missing components still render, and report them, on every render. Passing a new
componentsobject oronMissingComponentfunction on every render still re-renders every block.
- Styled list items (a list item with a
-
#363
48eb5d8Thanks @christianhg! - fix: listreactin the npm keywords of @portabletext/reactnpm search and keyword filters now find it under
react. -
#364
f32dff7Thanks @stipsan! - The defaultlinkmark now only renders an<a>for safe hrefs (http,https,mailto,tel,#,/and relative URLs). Links with any other protocol, such asjavascript:,data:orvbscript:, render their children as plain text. TheuriLooksSafecheck comes from@portabletext/toolkit6.1.0.