PowerHorse Engine
    Preparing search index...
    CreateEffectCallbackParam: Callback & { cleanup: () => void; exit: () => void }

    Type Declaration

    • cleanup: () => void
    • exit: () => void

      If you need to run logic inside of a createEffect function that normally cannot be executed inside of a createEffect, you can end the effect early by calling this function.

      This can solve cases where you experience "Attempted to createScope inside createEffect" or similar.