@funnelsgrove/runtime 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -227,7 +227,7 @@ const subscribeRuntimeMode = (listener) => {
|
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
229
|
export const useRuntimeMode = () => {
|
|
230
|
-
const [mode, setMode] = useState(
|
|
230
|
+
const [mode, setMode] = useState(() => getRuntimeMode());
|
|
231
231
|
useEffect(() => {
|
|
232
232
|
const syncMode = () => {
|
|
233
233
|
setMode(getRuntimeMode());
|