WIP
Some checks failed
Build and Test / run-test (20.x) (push) Failing after 1m36s

This commit is contained in:
2026-04-09 20:57:35 -03:00
parent 9c0006e2dc
commit 3f9613d98b
12 changed files with 1631 additions and 52 deletions

View File

@@ -0,0 +1,13 @@
import * as React from 'react';
function useLazyRef<T>(fn: () => T) {
const ref = React.useRef<T | null>(null);
if (ref.current === null) {
ref.current = fn();
}
return ref as React.RefObject<T>;
}
export { useLazyRef };