Something went wrong. Try again.
A lexicon-driven AppView for ATProto.
Something went wrong. Try again.
TypeScript
12345678910111213141516import * as React from "react";
import { useIsomorphicLayoutEffect } from "@/hooks/use-isomorphic-layout-effect";
function useAsRef<T>(props: T) { const ref = React.useRef<T>(props);
useIsomorphicLayoutEffect(() => { ref.current = props; });
return ref;}
export { useAsRef };