bug: header adds cloned elements outside of root context, causing appload to get fired multiple times
See original GitHub issuePrerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
We currently get many Errors (over thousand in two days) like this one in Production:
https://sentry.io/share/issue/f73db0f955c84087ae68e7ae94567495/
We don’t use the IonSlides
anymore, we already migrated to use swiperjs
directly.
Expected Behavior
- understand why this is happening
- Fix it 😃
Steps to Reproduce
I can not really reproduce this locally, so i guess this makes it a bit harder^^
But maybe you have an idea or something we can start with to understand this bug?
Code Reproduction URL
No response
Ionic Info
No response
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (22 by maintainers)
Top Results From Across the Web
React Error Handling And Reporting With Error Boundary And ...
In this article, we'll explore the concept of error boundaries in a React application. We'll work through an example app to see how...
Read more >Safari Technology Preview Release Notes - Apple Developer
Added support for “Get Element Shadow Root”, “Find Element From Shadow Root”, ... onShown to prevent it from firing multiple times per active...
Read more >WebDriver - W3C
WebDriver is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral ...
Read more >Fix list for IBM WebSphere Application Server Liberty
Abstract. Fixes for WebSphere Application Server Liberty are delivered in fix packs periodically. This is a complete listing of all the fixes for...
Read more >Lightning Aura Components Developer Guide
Add Aura Components to Any App with Lightning Out (Beta) . ... Events are fired from JavaScript controller actions that are typically ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue here is with the large title adding cloned elements outside of the root
ion-app
node: https://github.com/ionic-team/ionic-framework/blob/2916810a2b70631cf2d78228b42592d9eada5449/core/src/components/header/header.utils.ts#L27This causes Stencil to think it is creating a brand new app.
This issue will be resolved in an upcoming release of Ionic 6 RC. Swiper 7 resolves a lot of async initialization issues in Ionic so listening for
appload
will no longer be needed.