Skip to content

Commit

Permalink
Format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Sep 12, 2024
1 parent af864a1 commit 14fa8dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions test/lruMemoize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,16 @@ describe(lruMemoize, () => {

const createSelector = createSelectorCreator({
memoize: lruMemoize,
argsMemoize: lruMemoize
argsMemoize: lruMemoize,
}).withTypes<State>()

const selector = createSelector(
[(state, id: number) => state[id]],
state => state,
{
argsMemoizeOptions: { maxSize: 10 },
memoizeOptions: { maxSize: 10 }
}
memoizeOptions: { maxSize: 10 },
},
)

const firstResult = selector(state, 0)
Expand Down
15 changes: 8 additions & 7 deletions website/docs/introduction/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,15 @@ In addition to skipping unnecessary recalculations, `memoizedSelectCompletedTodo
## Terminology

- <InternalLinks.Selector text={<b>Selector Function</b>} />
: A function that accepts one or more JavaScript values as arguments, and derives
a result. When used with <ExternalLinks.Redux />, the first argument is typically
the entire Redux store state.
: A function that accepts one or more JavaScript values as arguments, and
derives a result. When used with <ExternalLinks.Redux />, the first argument
is typically the entire Redux store state.
- <InternalLinks.InputSelectors text={<b>Input Selectors</b>} />
: Basic selector functions used as building blocks for creating a memoized selector.
They are passed as the first argument(s) to <InternalLinks.CreateSelector />, and
are called with all selector arguments. They are responsible for extracting and
providing necessary values to the <InternalLinks.ResultFunction />.
: Basic selector functions used as building blocks for creating a memoized
selector. They are passed as the first argument(s) to <InternalLinks.CreateSelector />
, and are called with all selector arguments. They are responsible for
extracting and providing necessary values to the <InternalLinks.ResultFunction />
.
- <InternalLinks.OutputSelector text={<b>Output Selector</b>} />
: The actual memoized selectors created by <InternalLinks.CreateSelector />.
- <InternalLinks.ResultFunction text={<b>Result Function</b>} />
Expand Down

0 comments on commit 14fa8dd

Please sign in to comment.