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
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...