Skip to content

Commit

Permalink
Added Known Limitations title to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
riqts committed Feb 2, 2024
1 parent e1a4222 commit 621b53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/createSelector.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const createTypedDraftSafeSelector = createDraftSafeSelector.withTypes<RootState

Import and use the pre-typed `createTypedDraftSafeSelector` function, and it will automatically know that the `state` argument is of type `RootState`.

:::warning
:::warning Known Limitations
Currently this approach only works if input selectors are provided as a single array.

If you pass the input selectors as separate inline arguments, the parameter types of the result function will not be inferred. As a workaround you can either
Expand Down

0 comments on commit 621b53e

Please sign in to comment.