Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

remove console logs

Jonathan Summers-Muir31b8273c991f
diff --git a/apps/docs/hooks/useWindowLocation.ts b/apps/docs/hooks/useWindowLocation.ts
index 7c3193b20ed..5545b45f211 100644
--- a/apps/docs/hooks/useWindowLocation.ts
+++ b/apps/docs/hooks/useWindowLocation.ts
@@ -10,17 +10,13 @@ const useWindowLocation = (): Location | void => {
}
useEffect(() => {
- //console.log('HOOK USEEFFECT FOR WINDOWWW')
if (!isMounted) return
- //console.log('I AM MOUNTED')
if (!location) {
setWindowLocation(window.location)
}
const handler = () => {
- //console.log('handlinggg...')
- //console.log(window.location)
setWindowLocation(window.location)
}
@@ -38,18 +34,4 @@ const useWindowLocation = (): Location | void => {
return location
}
-// const useWindowLocation = (): any => {
-// const [location, setLocation] = useState((window && window.location) ?? undefined)
-// const setWindowLocation = () => {
-// console.log('Hello', window.location)
-// setLocation(window.location)
-// }
-// useEffect(() => {
-// window.addEventListener('popstate', setWindowLocation)
-// return () => {
-// window.removeEventListener('popstate', setWindowLocation)
-// }
-// }, [])
-// return location
-// }
export default useWindowLocation