Skip to content

Navigation Component: New Template Part does not dynamically appear after creation #30105

Description

@annezazu

Description

Similar to this issue #29844 around template part naming only updating after saving changes, a new template part does not dynamically show up in the navigation component after creation. This came up in the third call for testing for the FSE Outreach Program::

Again, I had Navigation Toggle open at “Template Parts”, but the newly saved “404 Header” template did not appear on the list. I had to go up one level (“Theme” and “Content”) then go back into “Template Parts”, to get it shown on the list in Navigation Toggle. It would be nice to dynamically refresh here.

Step-by-step reproduction instructions

  1. Setup a site with FSE capabilities (use TT1 blocks theme & Gutenberg plugin)
  2. Head to the Site Editor experience
  3. Add a Template Part Block
  4. Create a new template part
  5. Using the advanced settings, add a title and set the area
  6. Open the navigation component and find that the template part doesn't appear until you update design.
  7. If you then edit the name of the template, it won't show changes even after saving until you go up a higher level and return.

Expected behaviour

I expect the template part to show up in the Navigation Component.

Actual behaviour

The template part does not show up in the Navigation Component until the design is updated.

Screenshots or screen recording (optional)

template.part.saving.mov

WordPress information

  • WordPress version: 5.7
  • Gutenberg version: 10.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Device information

  • Device: Desktop
  • Operating system: MacOS
  • Browser: Chrome Version 88.0.4324.192

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions