render-runtime
render-runtime copied to clipboard
Modify unlisten to intercept page transitions
What is the purpose of this pull request?
As the title says.
What problem is this solving?
Add logic to register callbacks and intercept page transitions in cases we need to prevent user from navigating page when they are entering some data that can be lost.
How should this be manually tested?
- Access.
- Pick a collection.
- Edit the collection and try to leave the page.
Screenshots or example usage

Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Requires change to documentation, which has been updated accordingly.
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖
Please select which version do you want to release:
-
[ ] Patch
-
[x] Minor
-
[ ] Major
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
- [ ] No thanks, I would rather do it manually 😞
Beep boop :robot:
I noticed you didn't make any changes at the docs/ folder
- [ ] There's nothing new to document :thinking:
- [ ] I'll do it later :disappointed:
In order to keep track, I'll create an issue if you decide now is not a good time
- [ ] I just updated :tada::tada: