Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

remove loader-related useEffect

Blue Mouse63293eb70cff
diff --git a/app/App.tsx b/app/App.tsx
index cac063400..9e8e46e63 100644
--- a/app/App.tsx
+++ b/app/App.tsx
@@ -118,23 +118,6 @@ const App: React.FC<IApp> = ({ ssrTheme }) => {
}
}, [paddleLoaded, authenticated]) // eslint-disable-line
- useEffect(() => {
- let loaderEl: HTMLElement | null = null
-
- if (document) {
- loaderEl = document.getElementById('loader')
- }
-
- if (loaderEl) {
- loaderEl.classList.add('available')
- setTimeout(() => {
- if (loaderEl) {
- loaderEl.outerHTML = ''
- }
- }, 1000)
- }
- }, [])
-
useEffect(() => {
(async () => {
if ((accessToken && refreshToken) && !authenticated) {