Skip to content

Conversation

Infinite-Null
Copy link
Contributor

What?

Related to: #42125
PR: #16249

This PR adds a JSDoc @example comment to the isPostAutosavingLocked selector.

Why?

The isPostAutosavingLocked API was introduced in PR #16249, and this selector was missing its example documentation.

How?

Added a JSDoc @example block to the isPostAutosavingLocked selector that demonstrates:

  • How to use the selector with the useSelect hook in a React component
  • An example showing conditional rendering based on the selector's return value

Copy link

github-actions bot commented Jul 8, 2025

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Infinite-Null <ankitkumarshah@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano t-hamano added [Type] Developer Documentation Documentation for developers [Package] Editor /packages/editor labels Jul 8, 2025
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@t-hamano t-hamano added the props-bot Adding this label triggers the Props Bot workflow for a PR. label Jul 8, 2025
@github-actions github-actions bot removed the props-bot Adding this label triggers the Props Bot workflow for a PR. label Jul 8, 2025
@t-hamano t-hamano merged commit fbb342a into WordPress:trunk Jul 8, 2025
70 of 74 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.2 milestone Jul 8, 2025
cbravobernal pushed a commit that referenced this pull request Jul 15, 2025
)

Co-authored-by: Infinite-Null <ankitkumarshah@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Editor /packages/editor [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants