Destroyed scheduler still handles events #3212
Labels
bug
Something isn't working
forum
Issues from forum
frameworks
high-priority
Urgent to have fixed
large-account
Reported by large customer
OEM
OEM customer
premium
resolved
Fixed but not yet released (available in the nightly builds)
Milestone
The frameworks require to fully remove Bryntum widgets, including installed global listeners, is some cases, for example when navigation out of the page that contains a Bryntum component.
We need a way how to sense that all widgets are gone and detach the global events in that case.
This can also be done in the framework application but we should not impose this responsibility on the users.
The issue can be reproduced as follows:
npm i && npm start
The scheduler should have been destroyed completely at that point and should not hang the browser in the infinite loop.
Forum post
Hello,
We have a react app where we use Bryntym Scheduler Pro and we also use jqxGrid. The issue we're having is that when we first navigate to a page with the scheduler, then navigate to a page with jqxGrid and try to change the filtering option, it completely freezes. This does not happen if we don't visit a page with Bryntum scheduler first, indicating that it is the cause of the issue.
Changing this causes the tab to freeze:
https://imgur.com/mn5xK8N
Also, using Firefox's performance profiler reveals that the freeze is caused by the Bryntum Scheduler. It attempts to handle some event, even though it's not being rendered:
https://imgur.com/a/hB1O0nK
Clicking on the highlighted line opens up this:
https://imgur.com/a/m9mnJyb
So, how am I supposed to destroy the scheduler instance, so that it doesn't affect other pages that are irrelevant to it?
Note we are using react-router-dom for navigation.
Thank you,
The text was updated successfully, but these errors were encountered: