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
The doc for componentOnReady recommends Ionic's similarly-named util for consistent behavior between lazy and non-lazy-loaded builds:
If you want to simulate the behavior of componentOnReady() for non-lazy builds, you can implement a helper method to wrap the functionality similar to what the Ionic Framework does here.
A note should be added this being similar in functionality in the non-lazy-loaded builds only if none of the component lifecycle methods return a promise. Otherwise, the callback will resolve after a requestAnimationFrame, but possibly before async component lifecycle methods resolve.
The text was updated successfully, but these errors were encountered:
@jcfranco thanks for raising an issue for this. Would you be interested making such a change in the docs as you have most context about it? Happy to support where help is needed.
jcfranco
added a commit
to Esri/calcite-design-system
that referenced
this issue
Jun 8, 2024
…LoadableComponent`) (#9515)
**Related Issue:** N/A
## Summary
#9362 introduced a utility that aimed to simplify how components wait to
be loaded/ready before certain logic. Unfortunately, the behavior
differs between `dist` and `components` output targets. This is because
the utility assumes components from the `components` output target are
not returning promises in lifecycle hooks that would delay initial
rendering.
See ionic-team/stencil-site#1437 for more
info.
The doc for
componentOnReady
recommends Ionic's similarly-named util for consistent behavior between lazy and non-lazy-loaded builds:A note should be added this being similar in functionality in the non-lazy-loaded builds only if none of the component lifecycle methods return a promise. Otherwise, the callback will resolve after a
requestAnimationFrame
, but possibly before async component lifecycle methods resolve.The text was updated successfully, but these errors were encountered: