Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 9, 2023
1 parent d554abc commit 6e5af82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/edit-site/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export const getReusableBlocks = createRegistrySelector( ( select ) => () => {
*/
export function getSettings( state ) {
// It is important that we don't inject anything into these settings locally.
// The reason for this is that we have an effect in place that calls setSettings based on the previous value of getSettings.
// If we add computed settings here, we'll be adding these computed settings to the state which is very unexpected.
return state.settings;
}

Expand Down

0 comments on commit 6e5af82

Please sign in to comment.