-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(next): ctx.isPrerendered #11875
Conversation
🦋 Changeset detectedLatest commit: 2fe97bc The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a minor
changeset. A reviewer will merge this at the next release if approved.
I wonder if the property should actually be called |
We already expose |
idk, |
I usually go for verbose names, so I like |
Cool! I'll wait for docs review for the naming then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's maybe an idea!
I agree with @ematipico here. |
I know @Fryuni was thinking about something like |
I might have this preference due to the language difference.
|
@Fryuni I think it's probably a language thing. In this context it means "this is a prerendered route", rather than "this route has been prerendered". A property of the route, rather than a state. |
Yeah I agree with Matt there. I think ctx.prerender is going to be too confusing tbh so I'm against this one |
6d156c0
to
c835261
Compare
Changes
prerender
property to the Astro contextTesting
Adds test
Docs
Changeset, withastro/docs#9301