Skip to content

Fix cut content inside TOC of docs #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/docs/FAQ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const selectAlertsByType = createSelector(

<!-- END: FAQ/selectorRecomputing.ts -->

## Can I use Reselect without <ExternalLinks.Redux />?
## Can I use Reselect without <ExternalLinks.Redux>Redux</ExternalLinks.Redux>?

Yes. Reselect has no dependencies on any other package, so although it was designed to be used with <ExternalLinks.Redux /> it can be used independently. It can be used with any plain JS data, such as typical <ExternalLinks.React /> state values, as long as that data is being updated immutably.

Expand Down Expand Up @@ -668,7 +668,7 @@ const MyComponent = ({ id }) => {

<!-- END: FAQ/MyComponent.tsx -->

## How can I make pre-typed version of <InternalLinks.CreateSelector /> for my root state?
## How can I make a pre-typed version of <InternalLinks.CreateSelector>`createSelector`</InternalLinks.CreateSelector> for my root state?

When used with Redux, it's typical to have all input selectors take `(state: RootState)` as their first argument. Creating a pre-typed version of `createSelector` can shorten that repetition.

Expand Down Expand Up @@ -724,7 +724,7 @@ This approach currently only supports <InternalLinks.InputSelectors /> provided

:::

## What if I want to use <InternalLinks.CreateSelector /> without memoization?
## What if I want to use <InternalLinks.CreateSelector>`createSelector`</InternalLinks.CreateSelector> without memoization?

There may be rare cases when you might want to use `createSelector` for its composition syntax, but without any memoization applied. In that case, create an <ExternalLinks.IdentityFunction /> and use it as the memoizers:

Expand Down
4 changes: 2 additions & 2 deletions website/docs/api/development-only-stability-checks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ setGlobalDevModeChecks({ inputStabilityCheck: 'always' })
setGlobalDevModeChecks({ inputStabilityCheck: 'never' })
```

### 2. Per selector by passing an `inputStabilityCheck` option directly to <InternalLinks.CreateSelector />:
### 2. Per selector by passing an `inputStabilityCheck` option directly to <InternalLinks.CreateSelector>`createSelector`</InternalLinks.CreateSelector>:

<!-- START: development-only-stability-checks/inputStabilityCheck.ts -->

Expand Down Expand Up @@ -187,7 +187,7 @@ setGlobalDevModeChecks({ identityFunctionCheck: 'always' })
setGlobalDevModeChecks({ identityFunctionCheck: 'never' })
```

### 2. Per selector by passing an `identityFunctionCheck` option directly to <InternalLinks.CreateSelector />:
### 2. Per selector by passing an `identityFunctionCheck` option directly to <InternalLinks.CreateSelector>`createSelector`</InternalLinks.CreateSelector>:

<!-- START: development-only-stability-checks/identityFunctionCheck.ts -->

Expand Down
2 changes: 1 addition & 1 deletion website/docs/introduction/how-does-reselect-work.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The <InternalLinks.InputSelectors /> take the same arguments as the <InternalLin

:::

## Why Reselect Is Often Used With <ExternalLinks.Redux />
## Why Reselect Is Often Used With <ExternalLinks.Redux>Redux</ExternalLinks.Redux>

While Reselect can be used independently from Redux, it is a standard tool used in most Redux applications to help optimize calculations and UI updates:

Expand Down
2 changes: 1 addition & 1 deletion website/docs/related-projects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Link from '@docusaurus/Link'

# Related Projects

## <ExternalLinks.ReReselect />
## <ExternalLinks.ReReselect>Re-reselect</ExternalLinks.ReReselect>

Enhances Reselect selectors by wrapping <InternalLinks.CreateSelector /> and returning a memoized collection of selectors indexed with the cache key returned by a custom resolver function.

Expand Down