Skip to content

Commit 9484194

Browse files
committed
Don't refresh the whole editor on one param change
1 parent b051c4d commit 9484194

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/app/src/app/pages/Sandbox/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ export const Sandbox: React.FC<Props> = ({ match }) => {
4141
actions.live.onNavigateAway();
4242

4343
actions.editor.sandboxChanged({ id: match.params.id });
44-
}, [
45-
actions.live,
46-
actions.editor,
47-
actions.preferences,
48-
match.params,
49-
match.params.id,
50-
]);
44+
}, [actions.live, actions.editor, actions.preferences, match.params.id]);
5145

5246
useEffect(
5347
() => () => {

0 commit comments

Comments
 (0)