UNPKG

@logux/client

Version:

Logux base components to build web client

15 lines (13 loc) 340 B
import type { Client } from '../client/index.js' /** * Show confirm popup, when user close tab with non-synchronized actions. * * ```js * import { confirm } from '@logux/client' * confirm(client) * ``` * * @param client Observed Client instance. * @returns Unbind listener. */ export function confirm(client: Client): () => void