Blocks navigation to prevent data loss. This function takes in a
key parameter to identify which parts of the tool are blocking navigation.
The exit block will refuse to unlatch from the document if all keys are not
released with unblockExit.
If no key is provided, this will unconditionally set the block. Running
any operation that updates the block list (e.g. unblockExit with a key
not blocked) will immediately unblock the page.
Blocks navigation to prevent data loss. This function takes in a
key
parameter to identify which parts of the tool are blocking navigation. The exit block will refuse to unlatch from the document if all keys are not released withunblockExit
.If no key is provided, this will unconditionally set the block. Running any operation that updates the block list (e.g.
unblockExit
with a key not blocked) will immediately unblock the page.