Function onCleanup

  • Runs an effect fn once before the reactive scope is disposed

    Parameters

    • fn: Fn<void>

    Returns void