Skip to content

Commit

Permalink
fix: editor flicker after creating xblock
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Nov 25, 2024
1 parent d08ef83 commit 449f6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editors/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 449f6f0

Please sign in to comment.