mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 14:13:21 +01:00
initStates needed for standalone compose page
This commit is contained in:
parent
c8dc32b884
commit
5433e4e119
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ import { lazy } from 'preact/compat';
|
||||||
import { useEffect, useState } from 'preact/hooks';
|
import { useEffect, useState } from 'preact/hooks';
|
||||||
|
|
||||||
import IntlSegmenterSuspense from './components/intl-segmenter-suspense';
|
import IntlSegmenterSuspense from './components/intl-segmenter-suspense';
|
||||||
|
import { initStates } from './utils/states';
|
||||||
// import Compose from './components/compose';
|
// import Compose from './components/compose';
|
||||||
import useTitle from './utils/useTitle';
|
import useTitle from './utils/useTitle';
|
||||||
|
|
||||||
|
@ -31,6 +32,10 @@ function App() {
|
||||||
: 'Compose',
|
: 'Compose',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
initStates();
|
||||||
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (uiState === 'closed') {
|
if (uiState === 'closed') {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue