
Hello, ESLint is flagging my code for assigning the user object (returned from account.get()
) to a react state which is initially defined with the value "null"
const [user, setUser] = useState(null)
How do I fix this error?

should your useState be typed? useState<Models.User<Models.Preferences>>();

Sure but where do I find the correct types for Appwrite stuff

Like how do I import the types they use

Might be like this: import { type Models } from 'appwrite';
@larkx

You import Models from appwrite

Recommended threads
- How To Send Email Verification From Serv...
How can I send email verification from server action or component after sign up in next.js ? Is there any way ?
- x-appwrite-user-jwt missing
Even for logged in users I can't see "x-appwrite-user-jwt" or "x-appwrite-user-id" in headers of an appwrite function. I'm trying to send "x-appwrite-user-id" m...
- ATTRIBUTE NOT SHOWING DELETE
Hi, I'm trying to delete an attribute in my collection but it won't delete, It's not even showing the delete when I click on the hamburger icon, Its showing onl...
