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 |
|
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:loadtoastro:page-loadastro:loadis already taken.astro:beforeloadtoastro: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:
afterswapname doesn't mention the transition. Some think it should.