-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds explanatory text to view.js template #53870
Adds explanatory text to view.js template #53870
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just thinking we could simplify the text a little. I've left suggestions but feel free to make your own changes.
Accepting Ryan's suggestion Co-authored-by: Ryan Welcher <[email protected]>
Accepting Ryan's suggestion Co-authored-by: Ryan Welcher <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looks like an extra line was left in. Let's remove that and we're good to go!
Looks like there is a failing test that needs to be addressed as well - https://github.com/WordPress/gutenberg/actions/runs/5940139652/job/16108070444?pr=53870 |
What?
Adds some explanatory text to the
view.js
template in thecreate-block
package.Why?
This file, namely
view.js
, was recently added to projects created with@wordpress/create-block
, I believe due to the implementation of the Interactivity API (correct me if I'm wrong). For many people it's not clear what this file is for so some explanatory text has been added as a comment in the template file to clarify its purpose and usage.