From 449f6f0b45f807ea911219e0e8747d6a02599b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Fri, 22 Nov 2024 21:59:50 -0300 Subject: [PATCH] fix: editor flicker after creating xblock --- src/editors/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editors/hooks.ts b/src/editors/hooks.ts index d2a7403d87..c32d608008 100644 --- a/src/editors/hooks.ts +++ b/src/editors/hooks.ts @@ -9,7 +9,7 @@ import { RequestKeys } from './data/constants/requests'; // eslint-disable-next-line react-hooks/rules-of-hooks export const initializeApp = ({ dispatch, data }) => useEffect( () => dispatch(thunkActions.app.initialize(data)), - [data], + [data?.blockId, data?.studioEndpointUrl, data?.learningContextId], ); export const navigateTo = (destination: string | URL) => {