@wailsio/runtime
    Preparing search index...

    Function Once

    • Registers a callback function to be executed only once for the specified event.

      Type Parameters

      • E extends string & {} = string & {}

      Parameters

      • eventName: E

        The name of the event to register the callback for.

      • callback: WailsEventCallback<E>

        The callback function to be called when the event is triggered.

      Returns () => void

      A function that, when called, will unregister the callback from the event.