-
-
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
Finalize View Transition event names #8181
Conversation
🦋 Changeset detectedLatest commit: 51861ef 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.
My major concern with using |
I think that could be misconstrued because rendering (to HTML) is still happening on the server. |
I think I am coming around to your argument. I don’t love the naming, but if we think we’ll need more fine-grained events and other names block that, we can aim to document the technical underpinnings so that
We already break this convention by including a Reasons the convention is bad:
|
Here's some docs. Want to see if this helps with the naming: withastro/docs#4320 Going to update this PR to use dashes. |
I would like to list all possible events we (you) may want to fire for a single transition:
Is this right? |
Yes, that's excellent @Akxe! The intent of this PR is not to add all possible events, but just to solidify the names. I like that you have a list though. I'd probably recommend adding that to a roadmap discussion issue, and we can use that as a guide when adding new events. I could also see some table like this making its way into the docs. |
@matthewp My intent was not to add them, but to know what all the possible events would be. It could help us define what event would be used for what, and also it would help us name the events consistently across the whole action. |
I do think that the addition of Also, ViewTransition API uses events Finally, I want to share my opinion; I think that adding |
Yeah, I intend to write up a new proposal shortly that includes some new events, I agree that's probably the next one to come, and some other additions such as a JS API to trigger a navigation to occur. |
Changes
astro:load
toastro:page-load
astro:load
is already taken.astro:beforeload
toastro:after-swap
.Testing
Docs
Points of contention
Based on other discussions from the RFC, I think these are the major points of contention to decide:
afterswap
name doesn't mention the transition. Some think it should.