- useBlocker(): [isBlocked: boolean, block: (() => Promise<void>), unblock: (() => void)]
Returns [isBlocked: boolean, block: (() => Promise<void>), unblock: (() => void)]
- useBlocker<T>(): [isBlocked: boolean, block: (() => Promise<T>), unblock: ((result) => void)]
Returns [isBlocked: boolean, block: (() => Promise<T>), unblock: ((result) => void)]
Block an async flow and unblock it from an external context.