You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open dev tools(Or simply do the second step without opening with the dev tools)
Shrink the screen horizontally under 400px
The <body> should be blank now
and the exception is:
Uncaught Error: infinite rendering invalidation detected
at Array.loopEnd (ember-glimmer.js:4193)
at Backburner._trigger (backburner.js:876)
at Backburner._end (backburner.js:784)
at Backburner.end (backburner.js:514)
at Backburner._run (backburner.js:817)
at Backburner._join (backburner.js:793)
at Backburner.join (backburner.js:568)
at Array.loopEnd (ember-glimmer.js:4196)
at Backburner._trigger (backburner.js:876)
at Backburner._end (backburner.js:784)
In my current case I have 2 {{paper-tabs}} components in different pages.
In the first page the tabs are into {{paper-sidenav}} which is wrapped in {{paper-card}}. Here the sidenav is toggle-able I cannot reproduce this bug even when the {{paper-sidenav}} is open. In the second page the tabs are directly added to {{paper-card}} and here the problem is reproducible.
The text was updated successfully, but these errors were encountered:
After I upgraded to the latest ember-paper, all my tests using tabs where failing due to Uncaught Error: infinite rendering invalidation detected where the real error underneath is the following:
updateDimensions() {
let canvasWidth = this.element.querySelector('md-tabs-canvas').offsetWidth;
let wrapperWidth = this.element.querySelector('md-pagination-wrapper').offsetWidth;
// ....
}
That may be called whereas this.element is null.
When this.element is null the isDestroying flags is sets to true.
edit:
The infinite rendering invalidation was in fact a separate issue... I fixed the this.element is null but the first one remains.
This is caused by didRender that calls updateCanvasWidth that trigger a re-render that calls didRender, ...
edit 2:
Turns out this the call to fixOffsetIfNeeded within updateCanvasWidth that triggers a re-render.
Steps
<body>
should be blank nowand the exception is:
Example
You can try it here:https://miguelcobain.github.io/ember-paper/#/components/tabs
Note
In my current case I have 2 {{paper-tabs}} components in different pages.In the first page the tabs are into {{paper-sidenav}} which is wrapped in {{paper-card}}. Here the sidenav is toggle-able I cannot reproduce this bug even when the {{paper-sidenav}} is open. In the second page the tabs are directly added to {{paper-card}} and here the problem is reproducible.
The text was updated successfully, but these errors were encountered: