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
Hey, i just had this weird bug where my root page component stopped working.
no changes to code, or packages, the page suddenly only rendered the footer.
Here the code :
<>
{
typeof blok?.global === "object" ? (
<Header blok={blok.global} slug={blok.slug} />
) : (
<header>No global data selected</header>
)
}
<main> ... </main>
{
typeof blok?.global === "object" ? (
<Footer blok={blok.global} />
) : (
<footer>No global data selected</footer>
)
}
</>
not the greatest code, I admit, but it always worked.
then today after other changes (which i reverted) this would ONLY render the footer, but no errors nothing.
I finally fixed it by just simplifying the logic :
please tell me if there is something wrong with the first code, but i thought it should have at least worked.
instead it didnt fail but only rendered the footer ...
i checked the html, its not like a closing tag was missing and it skipped parts,
and were just empty ...
is there anything special about astro jsx syntax i should know?
is there somethign like verbose mode to get output from the renderer?
PS thanks, shoutout to astro team killing it, this is my new gospel so please tell me if I'm getting somethign wrong
### If this issue only occurs in one browser, which browser is a problem?
_No response_
### Describe the Bug
only partially renders the page, skipping the <header> and <main>, and rendering only the last <footer>
### What's the expected result?
normal fully rendered page
### Link to Minimal Reproducible Example
can't do this today, will setup asap
### Participation
- [ ] I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to report this!
I can see that it's the same issue issue reported in withastro/compiler#955. We're already tracking the problem there, so I'm going to close this as a duplicate.
Astro Info
not the greatest code, I admit, but it always worked.
then today after other changes (which i reverted) this would ONLY render the footer, but no errors nothing.
I finally fixed it by just simplifying the logic :
please tell me if there is something wrong with the first code, but i thought it should have at least worked.
and were just empty ...instead it didnt fail but only rendered the footer ...
i checked the html, its not like a closing tag was missing and it skipped parts,
is there anything special about astro jsx syntax i should know?
is there somethign like verbose mode to get output from the renderer?
package.json :
PS thanks, shoutout to astro team killing it, this is my new gospel so please tell me if I'm getting somethign wrong
The text was updated successfully, but these errors were encountered: