Skip to content

Commit 9cffdd6

Browse files
committed
test RC
Revert "test RC" This reverts commit 420a3f4. Reapply "test RC" This reverts commit a58e3f5e873ce7994f0cc171133537ddafd02faf.
1 parent 7f61914 commit 9cffdd6

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

src/components/defaults.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use no memo'
2-
31
import type {PortableTextBlockStyle} from '@portabletext/types'
42
import type {JSX} from 'react'
53

src/components/list.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use no memo'
2-
31
import type {PortableTextListComponent, PortableTextListItemComponent} from '../types'
42

53
const DefaultNumberList: PortableTextListComponent = ({children}) => <ol>{children}</ol>

src/components/marks.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use no memo'
2-
31
import type {TypedObject} from '@portabletext/types'
42

53
import type {PortableTextMarkComponent} from '../types'

src/components/merge.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use no memo'
2-
31
import type {PortableTextComponents, PortableTextReactComponents} from '../types'
42

53
export function mergeComponents(

src/components/unknown.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use no memo'
2-
31
import type {PortableTextReactComponents} from '../types'
42

53
import {unknownTypeWarning} from '../warnings'

src/react-portable-text.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use no memo'
2-
31
import type {ToolkitNestedPortableTextSpan} from '@portabletext/toolkit'
42
import type {PortableTextBlock, PortableTextListItemBlock, TypedObject} from '@portabletext/types'
53

@@ -205,10 +203,12 @@ function RenderList({
205203

206204
return useMemo(
207205
() => (
208-
<List value={node} index={index} isInline={false} renderNode={renderNode}>
209-
{children}
210-
</List>
211-
), [children, index, List, node, renderNode])
206+
<List value={node} index={index} isInline={false} renderNode={renderNode}>
207+
{children}
208+
</List>
209+
),
210+
[children, index, List, node, renderNode],
211+
)
212212
}
213213

214214
function RenderListItem({

0 commit comments

Comments
 (0)