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.
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.