tldraw/hooks/useLoadOnMount.ts
2021-05-16 08:09:46 +01:00

8 lines
161 B
TypeScript

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