From 50d4de86dd67c76d4020b60d56b792809271b5d4 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 21 Jun 2023 11:52:53 +0200 Subject: [PATCH] fix: infinite playground rendering (#4031) --- frontend/src/component/playground/Playground/Playground.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/playground/Playground/Playground.tsx b/frontend/src/component/playground/Playground/Playground.tsx index a68f1b9775..f06352799f 100644 --- a/frontend/src/component/playground/Playground/Playground.tsx +++ b/frontend/src/component/playground/Playground/Playground.tsx @@ -37,7 +37,7 @@ export const Playground: VFC<{}> = () => { useEffect(() => { setEnvironments([resolveDefaultEnvironment(availableEnvironments)]); - }, [environments]); + }, [JSON.stringify(availableEnvironments)]); useEffect(() => { // Load initial values from URL