initStates needed for standalone compose page

This commit is contained in:
Lim Chee Aun 2024-04-25 13:59:01 +08:00
parent c8dc32b884
commit 5433e4e119

View file

@ -7,6 +7,7 @@ import { lazy } from 'preact/compat';
import { useEffect, useState } from 'preact/hooks';
import IntlSegmenterSuspense from './components/intl-segmenter-suspense';
import { initStates } from './utils/states';
// import Compose from './components/compose';
import useTitle from './utils/useTitle';
@ -31,6 +32,10 @@ function App() {
: 'Compose',
);
useEffect(() => {
initStates();
}, []);
useEffect(() => {
if (uiState === 'closed') {
try {