Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Failing to load a nested component hides all parents #5703

Open
3 tasks done
mhoritani opened this issue Apr 25, 2024 · 1 comment
Open
3 tasks done

bug: Failing to load a nested component hides all parents #5703

mhoritani opened this issue Apr 25, 2024 · 1 comment
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil

Comments

@mhoritani
Copy link

Prerequisites

Stencil Version

4.17.1

Current Behavior

If a component is nested inside another component AND the nested component cannot be rendered fully because its entry point can't be loaded then the parent component will not display at all because it never receives the .hydrated css class.

While the issue of a bundle not loading is certainly not a StencilJS issue, the behavior of the parent component not rendering - especially thinking of an icon deeply nested inside many bigger components has quite a big impact which is problematic.

Expected Behavior

The parent component should still receive the hydrated class and be displayed even if a nested component bundle cannot be loaded.

System Info

No response

Steps to Reproduce

  • Open Stackblitz Repro
  • Navigate to your Dev Tools in the Network Tab
  • Find the nested component's entry file called nested-component.entry.js
  • Right click and select Block Request URL
  • Reload

Code Reproduction URL

https://stackblitz.com/edit/stencil-repro-mh-04-24?file=src%2Findex.html

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Apr 25, 2024
@rwaskiewicz rwaskiewicz added Bug: Validated This PR or Issue is verified to be a bug within Stencil and removed triage labels Apr 25, 2024
@rwaskiewicz
Copy link
Member

Hey @mhoritani 👋

Thanks for the issue with the repro case! It was super easy/helpful to understand what's going on here. I've labeled this as a bug to get ingested it into our backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil
Projects
None yet
Development

No branches or pull requests

2 participants