Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooked on you 🤣 #63

Open
Psydwinder opened this issue Mar 14, 2023 · 0 comments
Open

Hooked on you 🤣 #63

Psydwinder opened this issue Mar 14, 2023 · 0 comments

Comments

@Psydwinder
Copy link

Psydwinder commented Mar 14, 2023

Hey everyone,

There are a lot of components and hooks that you've called but are not using for example with the following code

This code is from the index.js

import { Auth } from '@supabase/auth-ui-react'
import { useSession, useSupabaseClient } from '@supabase/auth-helpers-react'
import Account from '@components/Account'
import Login from '../components/spaces/CreateSpace'
import CreateSpace from '../components/spaces/CreateSpace'
import { userAgent } from 'next/server'
import Avatar from 'components/Avatar'
import { useRouter } from 'next/router'
import { useEffect } from 'react'

Account, Login, CreateSpace, {userAgent} and Avatar aren't being used. Maybe consider removing them and cleaning up the code to make it slightly easier to read.

@Psydwinder Psydwinder changed the title Soooo many hooks and components Hooked on you 🤣 Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant