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