Skip to content

armgit / ui

Public Imported from GitHub
0
TypeScript
187 B
Raw Blame
import * as React from "react"

const subscribe = () => () => {}

export function useMounted() {
  return React.useSyncExternalStore(
    subscribe,
    () => true,
    () => false
  )
}