1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: infinite playground rendering (#4031)

This commit is contained in:
Mateusz Kwasniewski 2023-06-21 11:52:53 +02:00 committed by GitHub
parent 8a8116d13b
commit 50d4de86dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ export const Playground: VFC<{}> = () => {
useEffect(() => {
setEnvironments([resolveDefaultEnvironment(availableEnvironments)]);
}, [environments]);
}, [JSON.stringify(availableEnvironments)]);
useEffect(() => {
// Load initial values from URL