Vinyl
    Preparing search index...

    Function globalRef

    • Creates a global reference that can be lazily initialized. This function is tree-shakable as it doesn't perform any side effects on import.

      Type Parameters

      • T

      Parameters

      • init: () => T

        Factory function that creates the value

      Returns GlobalRef<T>