tldraw/hooks/useLoadOnMount.ts

9 lines
161 B
TypeScript
Raw Normal View History

import { useEffect } from "react"
import state from "state"
export default function useLoadOnMount() {
useEffect(() => {
state.send("MOUNTED")
}, [])
}