dojo / dojo/framework

Prompt widget for routing that renders a prompt before a route has transitioned

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
enhancement next
Dominant language
TypeScript
Stars
623
Forks
78
PR merge metrics
No merged PRs in 30d

Description

**Enhancement**

Add a new widget that can be used to render a view before a route transition has been completed based on a predicate. The render function would receive two functions that can be used to abort or continue the route transition.

For window reload/refresh, will need to use `onbeforeunload` and this only support the native browser confirm dialog.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.