docs: Update setup instructions for Interactivity Router to include -variant flag#76830
docs: Update setup instructions for Interactivity Router to include -variant flag#76830juanmaguitar wants to merge 1 commit intotrunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
Flaky tests detected in 231803a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23635375248
|
There was a problem hiding this comment.
@juanmaguitar interestingly, I asked Copilot to open this PR a couple of weeks ago (and I added you as a reviewer, you must have missed it).
I approve this PR, but feel free to merge whichever one you prefer and close the other one.
@luisherranz I have approved yours. I'll close this one in favour of #76543 👍 |
Updates the "Getting started with the Interactivity Router" section in the client-side navigation core concepts doc to recommend the
--variant client-side-navigationscaffold variant.Why?
@wordpress/create-block-interactive-templatenow ships a dedicatedclient-side-navigationvariant that scaffolds a block with@wordpress/interactivity-routeralready wired up. The existing docs pointed to the base template command, which doesn't include the router setup — developers reading the client-side navigation guide would benefit from starting with the variant that matches their intent.How?
Updated the scaffold command in the "Getting started with the Interactivity Router" section of
core-concepts/client-side-navigation.mdto include--variant client-side-navigation, and updated the surrounding prose to reflect that the variant includes both the Interactivity API and the router pre-configured.Testing Instructions
--variant client-side-navigation.Testing Instructions for Keyboard
No UI changes — documentation only.
Screenshots or screencast
N/A — documentation-only change.
Use of AI Tools
This PR was drafted with Claude Code assistance. The content was reviewed and is the author's responsibility.