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
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...