
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
- New Provider isn't working | Invalid OAu...
Hallo, I set up a new provider in Appwrite. I followed all the documentation, I set up everything, I successfully ran both Appwrite console and backend, and I f...
- Appwrite Sites: Error At Deployment
Hello, I am using Appwrite 1.7.4 on a self-hosted instance and am experiencing an issue with Appwrite Site's manual deployment. ```powershell [12:44:43] [open-...
- Unable to get teams ID
Part of my application involves looking at a table with the "assigned user" value and matching that to the corresponding user id in the team, for some reason th...
