From b90ed86aaaf2c54f3b54c2ddcab2cb4454de8b97 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:04:33 +0300 Subject: [PATCH] Block Editor: Subscribe only to block editor store in useBlockSync (#55041) --- packages/block-editor/src/components/provider/use-block-sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/provider/use-block-sync.js b/packages/block-editor/src/components/provider/use-block-sync.js index d788c7b444230..32dff45d8be67 100644 --- a/packages/block-editor/src/components/provider/use-block-sync.js +++ b/packages/block-editor/src/components/provider/use-block-sync.js @@ -293,7 +293,7 @@ export default function useBlockSync( { } ); } previousAreBlocksDifferent = areBlocksDifferent; - } ); + }, blockEditorStore ); return () => { subscribed.current = false;