releaseAllActionsfunction
Releases every held action after blur, pause, or pointer cancellation.
Import it
import { releaseAllActions } from "@johnmorrisdotca/houseki/falling-triplets";
Definition
function releaseAllActions(state: InputSchedulerState): InputSchedulerState
Parameters
| Name | Type | Description |
|---|---|---|
state | InputSchedulerState | The immutable native state to read or transition; the input is retained. |
Returns
InputSchedulerState
Releases every held action after blur, pause, or pointer cancellation.
Examples
import { createInputScheduler, releaseAllActions } from "@johnmorrisdotca/houseki/falling-triplets";
const input=createInputScheduler();
console.log(releaseAllActions(input));{ held: {}, queued: [] }What it prints (run when this page was built)