-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
Description
The DataGrid fails to load when the router-outlet rendering a page integrating the DataGrid is dynamically/asynchronously switched e.g. when switching from non login protected to login protected pages (using ng-if).
The following repository showcases the issue (as described in "steps to reproduce")
masterbranch has the issuefix/named-router-outletcontains the fix we currently have deployed (based on named router outlets)
- igniteui-angular version: 9.1.12
- browser: Chrome (84.0.4147.135), Firefox (80.0)
Steps to reproduce
- Start the example application from the
masterbranch - Open the DevConsole in Chrome/Firefox
- Click on "Login"
Result
The page does not render and an error occurs in the console.
The issue seems to be that in this specific setup only the "constructor" of the component is called (see log statements in the console) and then the component is immediately destroyed (when the router-outlet is changed due to the ng-if) leading to the error in the "cleanup" method of the DataGrid (when ngOnDestroy is called).
Expected result
The page with the DataGrid should render
Attachments
Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.
