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
Description:
Stencil requires public methods decorated with @method() to return a Promise. This allows methods to be called before the component is fully initialized and ensures async behavior across all layers.
Question
Do we need to always await @method() decorated methods inside our components?
Are there specific cases where not awaiting could cause issues?
Should we enforce await usage as best practice where necessary?
The text was updated successfully, but these errors were encountered:
Description:
Stencil requires public methods decorated with @method() to return a Promise. This allows methods to be called before the component is fully initialized and ensures async behavior across all layers.
Question
The text was updated successfully, but these errors were encountered: