Skip to content

Commit

Permalink
Merge pull request #664 from aryaemami59/fix-toc
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Dec 17, 2023
2 parents 0837509 + 1f0c25d commit 150d3c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
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

0 comments on commit 150d3c5

Please sign in to comment.