Function onMount

  • Execute the function fn only once. Implemented as an effect wrapping a untrack.

    Parameters

    • fn: (() => void)
        • (): void
        • Returns void

    Returns void