Skip to content

Commit

Permalink
Add JSDocs for CreateSelectorOptions.identityFunctionCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Nov 26, 2023
1 parent f3aa146 commit 6841bf3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/createSelectorCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ let globalIdentityFunctionCheck: DevModeCheckFrequency = 'once'
* setGlobalIdentityFunctionCheck('never')
* ```
* @see {@link https://github.com/reduxjs/reselect#debugging-tools debugging-tools}
* @see {@link https://github.com/reduxjs/reselect#1-globally-through-setGlobalIdentityFunctionCheck global-configuration}
* @see {@link https://github.com/reduxjs/reselect#1-globally-through-setglobalidentityfunctioncheck global-configuration}
*
* @since 5.0.0
* @public
Expand Down
14 changes: 14 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ export interface CreateSelectorOptions<
*/
inputStabilityCheck?: DevModeCheckFrequency

/**
* Overrides the global identity function check for the selector.
* - `once` - Run only the first time the selector is called.
* - `always` - Run every time the selector is called.
* - `never` - Never run the identity function check.
*
* @default 'once'
*
* @see {@link https://github.com/reduxjs/reselect#debugging-tools debugging-tools}
* @see {@link https://github.com/reduxjs/reselect#identityfunctioncheck identityFunctionCheck}
* @see {@link https://github.com/reduxjs/reselect#2-per-selector-by-passing-an-identityfunctioncheck-option-directly-to-createselector per-selector-configuration}
*
* @since 5.0.0
*/
identityFunctionCheck?: DevModeCheckFrequency

/**
Expand Down

0 comments on commit 6841bf3

Please sign in to comment.