effector / effector/router

RFC: block or confirm route transitions

Open
#39 1 comment 0 reactions 1 assignee Claimed by @sergeysova View on GitHub
enhancement scope:core
Dominant language
TypeScript
Stars
8
Forks
2
Avg merge
13h 44m
Merged PRs (30d)
1

Description

## Source
- atomic-router/atomic-router#28

## Summary
Built-in way to prevent or confirm user transitions from one route to another in effector/router.

## Motivation
Some apps need to stop navigation unless a condition is met (for example, a dirty form) or show a confirmation flow before leaving a route.

## Proposal
- Expose a route transition guard / blocker API for route composition.
- Allow a store/event-driven confirmation flow to decide whether to proceed.
- Optionally support allow/prevent lists for destination routes.

## Notes
This is adapted from the atomic-router request into effector/router terminology. I searched effector/router for blocker, confirm, beforeunload, beforeOpen, transition, and navigation duplicates and did not find an existing issue for this request.

## Relates
- #42

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.