-
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
Batch container block settings action calls #43958
Changes from all commits
7b59d40
d1a8bf5
bff7a65
84d0077
52768c8
4d8c031
bdd0e37
350f24b
f3a1328
1c4aa64
04814d9
925aaf9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1714,9 +1714,12 @@ export function automaticChangeStatus( state, action ) { | |
case 'SET_BLOCK_VISIBILITY': | ||
case 'START_TYPING': | ||
case 'STOP_TYPING': | ||
case 'UPDATE_BLOCK_LIST_SETTINGS': | ||
return state; | ||
} | ||
|
||
// TODO: This is a source of bug, as each time there's a change in timing, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need to add more info here about what the bug actually is, for future reference. Maybe the link to the PR? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's no identified bug, it's just a bad pattern (returning undefined from a reducer) that can cause bugs quickly and these bugs are very hard to track. |
||
// or a new action is added, this could break. | ||
// Reset the state by default (for any action not handled). | ||
} | ||
|
||
|
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.
What setting causes
isShallowEqual
to be false?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.
none, it's just the first time this gets called, it needs to be batched across the 500 blocks that call it in the same render 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.
Oh, ok. Why is that not initialised/preloaded in the store though?
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.
Sorry, am bit slow today. Because the information is in a React component of course.