Function getContext

  • Retrieves the context that belongs to the closest parent component with the specified key. Must be called during component initialisation.

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

    Type Parameters

    • T

    Parameters

    • key: any

    Returns T