react-simplikit 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,8 @@ type NotNullishValue = {};
|
|
|
5
5
|
* when it hasn't changed, while ensuring you can safely use the latest state.
|
|
6
6
|
* It prevents unnecessary re-renders while always allowing access to the latest data.
|
|
7
7
|
*
|
|
8
|
+
* @template {NotNullishValue} T - The type of target to be referenced.
|
|
9
|
+
*
|
|
8
10
|
* @param {T} value - The value to maintain the reference for. It returns a new reference
|
|
9
11
|
* if the state value changes after comparison.
|
|
10
12
|
* @param {(a: T, b: T) => boolean} [areValuesEqual] - An optional function to determine
|
|
@@ -5,6 +5,8 @@ type NotNullishValue = {};
|
|
|
5
5
|
* when it hasn't changed, while ensuring you can safely use the latest state.
|
|
6
6
|
* It prevents unnecessary re-renders while always allowing access to the latest data.
|
|
7
7
|
*
|
|
8
|
+
* @template {NotNullishValue} T - The type of target to be referenced.
|
|
9
|
+
*
|
|
8
10
|
* @param {T} value - The value to maintain the reference for. It returns a new reference
|
|
9
11
|
* if the state value changes after comparison.
|
|
10
12
|
* @param {(a: T, b: T) => boolean} [areValuesEqual] - An optional function to determine
|