Add vendor compliance report tab
Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
df23fd635f
commit
7cb84d8ce8
@@ -1,2 +1,3 @@
|
||||
export { usePageTitle } from "./usePageTitle";
|
||||
export { useToggle } from "./useToggle";
|
||||
export { useRefSync } from "./useRefSync";
|
||||
|
||||
7
packages/hooks/src/useRefSync.ts
Normal file
7
packages/hooks/src/useRefSync.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { useRef } from "react";
|
||||
|
||||
export function useRefSync<T>(value: T) {
|
||||
const ref = useRef(value);
|
||||
ref.current = value;
|
||||
return ref;
|
||||
}
|
||||
Reference in New Issue
Block a user