Skip to content

Commit 0a861de

Browse files
committed
Add convertInputSelectorsToArray codemod to .withTypes section
1 parent 6c3fb82 commit 0a861de

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

website/docs/api/createSelector.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ hide_title: true
66
description: 'createSelector'
77
---
88

9-
import Tabs from '@theme/Tabs'
109
import TabItem from '@theme/TabItem'
11-
10+
import Tabs from '@theme/Tabs'
1211
import { InternalLinks } from '@site/src/components/InternalLinks'
1312

1413
# `createSelector`
@@ -211,6 +210,8 @@ const selectTodoIds = createAppSelector(
211210

212211
{/* END: createSelector/annotateResultFunction.ts */}
213212

213+
3. Use the <InternalLinks.ConvertInputSelectorsToArray /> codemod to convert your inline input selectors to an array.
214+
214215
:::
215216

216217
:::tip

website/src/components/InternalLinks.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,13 @@ export const InternalLinks = {
8989
<Link to="/api/createStructuredSelector" title="createStructuredSelector">
9090
<code>createStructuredSelector</code>
9191
</Link>
92+
)),
93+
ConvertInputSelectorsToArray: memo(() => (
94+
<Link
95+
to="/codemods#convertInputSelectorsToArray"
96+
title="convertInputSelectorsToArray"
97+
>
98+
<code>convertInputSelectorsToArray</code>
99+
</Link>
92100
))
93101
} as const satisfies Record<string, FC<Props>>

0 commit comments

Comments
 (0)