@fluentui/react-utilities
Advanced tools
Comparing version 9.0.0-alpha.5 to 9.0.0-alpha.6
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Wed, 03 Mar 2021 00:05:15 GMT", | ||
"date": "Fri, 05 Mar 2021 20:29:23 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.6", | ||
"version": "9.0.0-alpha.6", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "useIsomorphicLayout effect with useEventCallback", | ||
"author": "lingfan.gao@microsoft.com", | ||
"commit": "f7b97e9dc1cf0fec0201533042db4befb800cbd0", | ||
"package": "@fluentui/react-utilities" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 03 Mar 2021 00:10:09 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.5", | ||
@@ -8,0 +23,0 @@ "version": "9.0.0-alpha.5", |
# Change Log - @fluentui/react-utilities | ||
This log was last generated on Wed, 03 Mar 2021 00:05:15 GMT and should not be manually modified. | ||
This log was last generated on Fri, 05 Mar 2021 20:29:23 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.6) | ||
Fri, 05 Mar 2021 20:29:23 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.5..@fluentui/react-utilities_v9.0.0-alpha.6) | ||
### Changes | ||
- useIsomorphicLayout effect with useEventCallback ([PR #17273](https://github.com/microsoft/fluentui/pull/17273) by lingfan.gao@microsoft.com) | ||
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.5) | ||
Wed, 03 Mar 2021 00:05:15 GMT | ||
Wed, 03 Mar 2021 00:10:09 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.4..@fluentui/react-utilities_v9.0.0-alpha.5) | ||
@@ -11,0 +20,0 @@ |
@@ -361,2 +361,4 @@ import * as React from 'react'; | ||
export declare const useIsomorphicLayoutEffect: typeof React.useEffect; | ||
/** | ||
@@ -363,0 +365,0 @@ * React hook to merge multiple React refs (either MutableRefObjects or ref callbacks) into a single ref callback that |
@@ -183,2 +183,5 @@ ## API Report File for "@fluentui/react-utilities" | ||
// @public (undocumented) | ||
export const useIsomorphicLayoutEffect: typeof React.useEffect; | ||
// @public | ||
@@ -185,0 +188,0 @@ export function useMergedRefs<T>(...refs: (React.Ref<T> | undefined)[]): RefObjectFunction<T>; |
@@ -6,2 +6,3 @@ export * from './useBoolean'; | ||
export { useId } from './useId'; | ||
export * from './useIsomorphicLayoutEffect'; | ||
export * from './useMergedRefs'; |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "tslib", "./useBoolean", "./useConst", "./useControllableValue", "./useEventCallback", "./useId", "./useMergedRefs"], function (require, exports, tslib_1, useBoolean_1, useConst_1, useControllableValue_1, useEventCallback_1, useId_1, useMergedRefs_1) { | ||
define(["require", "exports", "tslib", "./useBoolean", "./useConst", "./useControllableValue", "./useEventCallback", "./useId", "./useIsomorphicLayoutEffect", "./useMergedRefs"], function (require, exports, tslib_1, useBoolean_1, useConst_1, useControllableValue_1, useEventCallback_1, useId_1, useIsomorphicLayoutEffect_1, useMergedRefs_1) { | ||
"use strict"; | ||
@@ -9,4 +9,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useId = useId_1.useId; | ||
tslib_1.__exportStar(useIsomorphicLayoutEffect_1, exports); | ||
tslib_1.__exportStar(useMergedRefs_1, exports); | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "react"], function (require, exports, React) { | ||
define(["require", "exports", "react", "./useIsomorphicLayoutEffect"], function (require, exports, React, useIsomorphicLayoutEffect_1) { | ||
"use strict"; | ||
@@ -21,3 +21,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}); | ||
React.useEffect(function () { | ||
useIsomorphicLayoutEffect_1.useIsomorphicLayoutEffect(function () { | ||
callbackRef.current = fn; | ||
@@ -24,0 +24,0 @@ }, [fn]); |
@@ -6,2 +6,3 @@ export * from './useBoolean'; | ||
export { useId } from './useId'; | ||
export * from './useIsomorphicLayoutEffect'; | ||
export * from './useMergedRefs'; |
@@ -10,3 +10,4 @@ "use strict"; | ||
exports.useId = useId_1.useId; | ||
tslib_1.__exportStar(require("./useIsomorphicLayoutEffect"), exports); | ||
tslib_1.__exportStar(require("./useMergedRefs"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var React = require("react"); | ||
var useIsomorphicLayoutEffect_1 = require("./useIsomorphicLayoutEffect"); | ||
/** | ||
@@ -21,3 +22,3 @@ * https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback | ||
}); | ||
React.useEffect(function () { | ||
useIsomorphicLayoutEffect_1.useIsomorphicLayoutEffect(function () { | ||
callbackRef.current = fn; | ||
@@ -24,0 +25,0 @@ }, [fn]); |
@@ -6,2 +6,3 @@ export * from './useBoolean'; | ||
export { useId } from './useId'; | ||
export * from './useIsomorphicLayoutEffect'; | ||
export * from './useMergedRefs'; |
@@ -6,3 +6,4 @@ export * from './useBoolean'; | ||
export { useId } from './useId'; | ||
export * from './useIsomorphicLayoutEffect'; | ||
export * from './useMergedRefs'; | ||
//# sourceMappingURL=index.js.map |
import * as React from 'react'; | ||
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'; | ||
/** | ||
@@ -19,3 +20,3 @@ * https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback | ||
}); | ||
React.useEffect(function () { | ||
useIsomorphicLayoutEffect(function () { | ||
callbackRef.current = fn; | ||
@@ -22,0 +23,0 @@ }, [fn]); |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "9.0.0-alpha.5", | ||
"version": "9.0.0-alpha.6", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
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
336627
182
4439