From 06da664e0512ac3335853bdbb16fc78b8c9fa7b7 Mon Sep 17 00:00:00 2001 From: zerosoul Date: Tue, 7 Jun 2022 17:55:37 +0800 Subject: [PATCH] refactor: remove polling in get login config --- src/routes/login/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/login/index.js b/src/routes/login/index.js index 2f006463..35e6a8b7 100644 --- a/src/routes/login/index.js +++ b/src/routes/login/index.js @@ -26,7 +26,7 @@ export default function LoginPage() { const { data: loginConfig, isSuccess: loginConfigSuccess, - } = useGetLoginConfigQuery(undefined, { pollingInterval: 10000 }); + } = useGetLoginConfigQuery(); const [input, setInput] = useState({ email: "", password: "",