Function afterUpdate

  • Schedules a callback to run immediately after the component has been updated.

    The first time the callback runs will be after the initial onMount

    https://svelte.dev/docs/svelte#afterupdate

    Parameters

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

    Returns void