mobx-bonsai
    Preparing search index...

    Function _disposeOnce

    • Wraps a function to ensure it is only executed once.

      Type Parameters

      • A extends any[]

      Parameters

      • fn: (...args: A) => void

        The function to be executed only once.

      Returns _Dispose<A>

      A new function that calls the original function only the first time it is invoked.