remove incorrect setupCloseListener from _layout.tsx (#4818)
This commit is contained in:
committed by
GitHub
parent
8f88270cdf
commit
fef2728a7c
@@ -170,7 +170,7 @@ const Layout = () => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const routersEles = useRoutes(routers);
|
const routersEles = useRoutes(routers);
|
||||||
const { addListener, setupCloseListener } = useListen();
|
const { addListener } = useListen();
|
||||||
const initRef = useRef(false);
|
const initRef = useRef(false);
|
||||||
const [themeReady, setThemeReady] = useState(false);
|
const [themeReady, setThemeReady] = useState(false);
|
||||||
|
|
||||||
@@ -238,7 +238,6 @@ const Layout = () => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
setupCloseListener();
|
|
||||||
const cleanupWindow = setupWindowListeners();
|
const cleanupWindow = setupWindowListeners();
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user