Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Edit Site: Remove templateIds state #22893
Edit Site: Remove templateIds state #22893
Changes from all commits
e8b0235
f33b393
5dee808
77f2fbc
6b53c4b
0722365
14b1cca
2f7100f
ad38258
9cc4e27
adf85bd
be0bbbe
6e580b6
8568997
894d7e0
7642660
432dc97
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This needs to check for
done: true
.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 actually had it check for
done: true
but removed it after unit tests were failing, and I couldn't quite work out why 😬I'll try reverting that commit 🤔
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.
Failing again. I don't quite see why this isn't working, do you have any ideas?
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 un-reverted that commit. AFAICS, this is failing since we're
return
ing adispatch
action here, which is a generator itself.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.
dispatch
just returns an object. Something else is wrong here.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.
master
: 274 queries, 148,8 msThis branch
: 28 queries, 5.4 ms🎤 💧
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.
Sounds good.
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.
That's a pretty nice performance improvement <3
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 might be missing something, but could you elaborate on how you were able to access those perf numbers, Bernie?
I'm trying to access the debug bar locally but can't seem to get the debug dashboard to display. (I'm using query params like so
http://localhost:8888/wp-admin/admin.php?page=gutenberg-edit-site&debug-bar=1
)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.
You need the debug bar plugin installed and a few config constants set. You can use a
.wp-env.override.json
in your local Gutenberg source checkout dir to achieve both. This is mine (also linkstheme-experiments
themes).