
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
- Login without email or phone number
I'm making a web app targeted towards users who are very tech illiterate, so a lot of them won't even have emails. I know that the only two "identifiers" for a...
- Password Recovery link takes upwards of ...
Hello. I am having this issue above. Is there a way to make this faster? I created this project a while back when appwrite only supported Frankfurt servers. Wil...
- Appwrite not opening in my browser.
https://synapseaudit.appwrite.network/ This is one of my project hosted in appwrite, but only I am the one facing this problem.
