
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 detect user disconnection?
I'm creating a 1v1 challenge using realtime and i want to trigger a function when the user disconnect... how to make this using Appwrite Realtime? i searched i...
- Custom domain issue
Hello following another post I'm creating dedicated post according to my project ID: 67ffbd800010958ae104 I deployed for debug my React Native app in web, chrom...
- Appwrite DNS Record Invalid on 123reg
So I go to the project settings and add in my domain name. Then when I add the CNAME record to 123reg it says that ''Record data is invalid'' As seen in the s...
