usePrompt

external fun usePrompt(options: UsePromptOptions)(source)

Wrapper around useBlocker to show a window.confirm prompt to users instead of building a custom UI with useBlocker.

Warning: This has a lot of rough edges and behaves very differently (and very incorrectly in some cases) across browsers if user click addition back/forward navigations while the confirm is open. Use at your own risk.