From 625c09180ac50e8f214eb244c695926e450ba5f6 Mon Sep 17 00:00:00 2001 From: Judy Ye Date: Thu, 30 Nov 2023 18:32:29 -0800 Subject: [PATCH] Remove dependency array --- src/components/RoomOne/RoomOne.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/RoomOne/RoomOne.js b/src/components/RoomOne/RoomOne.js index 9d3a53c..bf283cc 100644 --- a/src/components/RoomOne/RoomOne.js +++ b/src/components/RoomOne/RoomOne.js @@ -41,6 +41,7 @@ export default function RoomOne() { const [dataSubscription, setDataSubscription] = useState(null); const [allImagesLoaded, setAllImagesLoaded] = useState(false); + const roomImages = [ blueBackground, clock, @@ -73,7 +74,7 @@ export default function RoomOne() { }; loadAllImages(); - }, []); + }); const toggleCipherVisibility = () => { setIsCipherVisible(!isCipherVisible); @@ -259,7 +260,9 @@ export default function RoomOne() { subscription={subscription} /> {roomStyle['--room-bg'] === 'none' && ( - ⏃⌰⌿⊑⏃ ☊⟒⋏⏁⏃⎍⍀⟟ + + ⏃⌰⌿⊑⏃ ☊⟒⋏⏁⏃⎍⍀⟟ + )} )}