Skip to content

Conversation

yogeshbhutkar
Copy link
Contributor

@yogeshbhutkar yogeshbhutkar commented Apr 28, 2025

What, Why, and How?

Follow-up to #69237
Related comment #69237 (comment)

This PR wraps the latestPropsRef assignment within a layout effect.

Ref:
https://react.dev/learn/referencing-values-with-refs#best-practices-for-refs
https://www.epicreact.dev/the-latest-ref-pattern-in-react

Testing Instructions

  1. Create a new Calendar block.
  2. Change the background and font size.
  3. Ensure that the updates are reflected without reloading the page.

Testing Instructions for Keyboard

Same.

@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review April 28, 2025 08:12
Copy link

github-actions bot commented Apr 28, 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: yogeshbhutkar <yogeshbhutkar@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.

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.

Thanks for the quick fix!

@t-hamano t-hamano added [Type] Code Quality Issues or PRs that relate to code quality [Package] Server Side Render /packages/server-side-render props-bot Manually triggers Props Bot to ensure the list of props is up to date. labels Apr 28, 2025
@github-actions github-actions bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Apr 28, 2025
@t-hamano t-hamano merged commit a5c6744 into WordPress:trunk Apr 28, 2025
70 of 72 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.8 milestone Apr 28, 2025
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
…ordPress#69999)

Co-authored-by: yogeshbhutkar <yogeshbhutkar@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] Server Side Render /packages/server-side-render [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants