rebuild hrm
This commit is contained in:
2
node_modules/@react-aria/utils/src/useSyncRef.ts
generated
vendored
2
node_modules/@react-aria/utils/src/useSyncRef.ts
generated
vendored
@@ -19,7 +19,7 @@ interface ContextValue<T> {
|
||||
}
|
||||
|
||||
// Syncs ref from context with ref passed to hook
|
||||
export function useSyncRef<T>(context?: ContextValue<T> | null, ref?: RefObject<T | null>) {
|
||||
export function useSyncRef<T>(context?: ContextValue<T> | null, ref?: RefObject<T | null>): void {
|
||||
useLayoutEffect(() => {
|
||||
if (context && context.ref && ref) {
|
||||
context.ref.current = ref.current;
|
||||
|
||||
Reference in New Issue
Block a user