-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
- Framework7 version: 6.3.15
- Platform and Target: [Chrome browser]
- Live Link or JSFiddle: https://codepen.io/blikblum/pen/BampNNq
Describe the bug
When exiting a nested page, beforeLeave route handler is called twice, the second time with params different from the actual transition
This occurs when using stackPages: true
To Reproduce
Steps to reproduce the behavior:
- Go to https://codepen.io/blikblum/pen/BampNNq
- Click on Person link
- Click on Fact link
- Click on About link
- Open console to view beforeLeave logging
- Click on back button
beforeLeave is called twice
first time with from.path === '/about/' and to.path === '/fact/'
second time is called with from.path === '/fact/' and to.path === '/person/'
Expected behavior
beforeLeave is called once with from.path === '/about/' and to.path === '/fact/'
Actual Behavior
beforeLeave is called twice
first time with from.path === '/about/' and to.path === '/fact/'
second time is called with from.path === '/fact/' and to.path === '/person/'
Screenshots
[..]
Additional context
The same behavior is observed in v5
Metadata
Metadata
Assignees
Labels
No labels