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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126