@fluentui/react-utilities
Advanced tools
Comparing version 9.18.10 to 9.18.11
@@ -17,2 +17,3 @@ "use strict"; | ||
const useControllableState = (options)=>{ | ||
'use no memo'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
@@ -63,2 +64,3 @@ if (options.state !== undefined && options.defaultState !== undefined) { | ||
*/ const useIsControlled = (controlledValue)=>{ | ||
'use no memo'; | ||
const [isControlled] = _react.useState(()=>controlledValue !== undefined); | ||
@@ -65,0 +67,0 @@ if (process.env.NODE_ENV !== 'production') { |
@@ -34,2 +34,3 @@ "use strict"; | ||
function useId(prefix = 'fui-', providedId) { | ||
'use no memo'; | ||
const contextValue = (0, _index.useSSRContext)(); | ||
@@ -36,0 +37,0 @@ const idPrefix = useIdPrefix(); |
@@ -14,2 +14,3 @@ "use strict"; | ||
function useMergedRefs(...refs) { | ||
'use no memo'; | ||
const mergedCallback = _react.useCallback((value)=>{ | ||
@@ -16,0 +17,0 @@ // Update the "current" prop hanging on the function. |
@@ -106,2 +106,3 @@ "use strict"; | ||
function useSelection(params) { | ||
'use no memo'; | ||
if (params.selectionMode === 'multiselect') { | ||
@@ -108,0 +109,0 @@ // selectionMode is a static value, so we can safely ignore rules-of-hooks |
@@ -22,2 +22,3 @@ import * as React from 'react'; | ||
*/ export const useControllableState = (options)=>{ | ||
'use no memo'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
@@ -68,2 +69,3 @@ if (options.state !== undefined && options.defaultState !== undefined) { | ||
*/ const useIsControlled = (controlledValue)=>{ | ||
'use no memo'; | ||
const [isControlled] = React.useState(()=>controlledValue !== undefined); | ||
@@ -70,0 +72,0 @@ if (process.env.NODE_ENV !== 'production') { |
@@ -24,2 +24,3 @@ import * as React from 'react'; | ||
*/ export function useId(prefix = 'fui-', providedId) { | ||
'use no memo'; | ||
const contextValue = useSSRContext(); | ||
@@ -26,0 +27,0 @@ const idPrefix = useIdPrefix(); |
@@ -8,2 +8,3 @@ import * as React from 'react'; | ||
*/ export function useMergedRefs(...refs) { | ||
'use no memo'; | ||
const mergedCallback = React.useCallback((value)=>{ | ||
@@ -10,0 +11,0 @@ // Update the "current" prop hanging on the function. |
@@ -95,2 +95,3 @@ import * as React from 'react'; | ||
export function useSelection(params) { | ||
'use no memo'; | ||
if (params.selectionMode === 'multiselect') { | ||
@@ -97,0 +98,0 @@ // selectionMode is a static value, so we can safely ignore rules-of-hooks |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "9.18.10", | ||
"version": "9.18.11", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
557057
5353