Accesses the close confirmation context, calling to require confirmation on close on mount and removing that requirement on unmount.
Accesses the close confirmation context, calling to require confirmation on close on mount and removing that requirement on unmount.