Skip to content

refactor: add simpler componentFocusable util (deprecates LoadableComponent)#9362

Merged
jcfranco merged 2 commits intomainfrom
jcfranco/deprecate-loadable-component
May 18, 2024
Merged

refactor: add simpler componentFocusable util (deprecates LoadableComponent)#9362
jcfranco merged 2 commits intomainfrom
jcfranco/deprecate-loadable-component

Conversation

@jcfranco
Copy link
Copy Markdown
Member

Related Issue: N/A

Summary

Adds a replacement componentFocusable util that does not depend on implementing LoadableComponent.

@github-actions github-actions Bot added the refactor Issues tied to code that needs to be significantly reworked. label May 17, 2024
@jcfranco jcfranco marked this pull request as ready for review May 17, 2024 19:56
@jcfranco jcfranco requested a review from a team as a code owner May 17, 2024 19:56
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label May 17, 2024
Copy link
Copy Markdown
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice

@jcfranco jcfranco merged commit fe0b900 into main May 18, 2024
@jcfranco jcfranco deleted the jcfranco/deprecate-loadable-component branch May 18, 2024 03:58
jcfranco added a commit that referenced this pull request 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 stenciljs/site#1437 for more
info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr ready for visual snapshots Adding this label will run visual snapshot testing. refactor Issues tied to code that needs to be significantly reworked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants