We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Astro v4.10.2 Node v20.11.0 System Linux (x64) Package Manager bun Output server Adapter @astrojs/node Integrations @astrojs/tailwind @astrojs/react
No response
I have an astro component with the following code
--- const items: Array<{ text: string; route: string; fullReload?: boolean }> = [ { text: 'Documents', route: '/documents/', fullReload: true }, { text: 'About', route: '/about' } ]; --- <ul> { items.map((item) => ( <li> <a href={item.route} data-astro-reload={item.fullReload ? 'true' : undefined}> {item.text} </a> </li> )) } </ul>
I want some of my routes to have the property data-astro-reload so they can avoid some issues that i have with view-transitions.
data-astro-reload
When running astro check I get a warning
astro check
warning astro(2005): The data-astro-reload attribute does not accept a value data-astro-reload={item.fullReload ? 'true' : undefined}
To not have any warning when having conditional data-astro-reload property
https://stackblitz.com/edit/github-eyffq4?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered:
This was fixed in 2.8.1 of the compiler (it's possible your project doesn't have this yet).
Sorry, something went wrong.
This should be fixed in 4.11.1. Let me know if its not (releasing now). #11297
Just upgraded to 4.1.1
Astro v4.11.1 Node v20.11.0 System Linux (x64) Package Manager bun Output server Adapter @astrojs/node Integrations @astrojs/tailwind @astrojs/react
The issue still persists.
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have an astro component with the following code
I want some of my routes to have the property
data-astro-reload
so they can avoid some issues that i have with view-transitions.When running
astro check
I get a warningWhat's the expected result?
To not have any warning when having conditional
data-astro-reload
propertyLink to Minimal Reproducible Example
https://stackblitz.com/edit/github-eyffq4?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: