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
When switching to a new active route, that route has a display style set to none, until all children are rendered. Within the route-rendered components, this route style causes limitations. For instance, one cannot utilize scrollTo in componentDidLoad / componentDidRender.
I've attempted the following workaround, wherein I emit when the route has loaded via a router-level mutation observer that looks at its changes in style. Ran into another bug trying to do so.
Expected behavior:
To have the currently-active route set to display: initial, so that children can utilize DOM methods without worry.
Related code:
In any given router-rendered component, try the following:
Stencil version: 1.12.1
I'm submitting a ...
[x] bug report
Current behavior:
When switching to a new active route, that route has a display style set to
none
, until all children are rendered. Within the route-rendered components, this route style causes limitations. For instance, one cannot utilizescrollTo
incomponentDidLoad
/componentDidRender
.I've attempted the following workaround, wherein I emit when the route has loaded via a router-level mutation observer that looks at its changes in style. Ran into another bug trying to do so.
Expected behavior:
To have the currently-active route set to
display: initial
, so that children can utilize DOM methods without worry.Related code:
In any given router-rendered component, try the following:
The text was updated successfully, but these errors were encountered: