Skip to content

Conversation

@t-hamano
Copy link
Contributor

@t-hamano t-hamano commented Jan 24, 2026

The theme.json modal and the metadata modal reference their own endpoints to retrieve data that the getCurrentTheme selector can't retrieve, but this is redundant:

  • theme.json modal: getCurrentTheme + fetchThemeJson
  • metadata modal: getCurrentTheme + fetchReadmeData

It would make more sense to include the additional data in the getCurrentTheme response.

Another reason for submitting this PR is to enable future updates to theme templates and metadata without a browser reload.

If all data is integrated into the default WordPress store, invalidateResolution will allow the selector resolution cache to be refreshed without a browser reload.

@t-hamano t-hamano self-assigned this Jan 24, 2026
@t-hamano t-hamano marked this pull request as ready for review January 24, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants