I have configured the client yet it takes a certain time for it to get initialized added a future delayed after configuration that worked but wanted a methodology that could be ideal for production level code does appwrite provide anything for this ?
TL;DR
The client takes time to initialize. Rather than initializing it on every `onInit`, it should be created once as a singleton. Use `const` to create it and use it. The `update` method's purpose is unclear, consider using `FutureBuilder` for UI updates. Slow connection could be due to daily backups. Test with Postman to see if it's also slow.- I don't think the client should be initialised on every
onInit.I am not sure if this isGetXor something like that. In-fact the client should be created once afaik like a singleton. You could make it aconstand use it, i guess? - I don't know that the
updatemethod does, change UI? maybe tryFutureBuilder. Since this is also a network call and you seem to on appwrite cloud, I've heard in general forum that a slow connection could be due to daily backups or something. - Also, what happens if you try to use
Postmanor something to simulate similar network request? Is that slow too?
Recommended threads
- Issue with downloading large files (40GB...
Hi everyone! I am using the latest Appwrite 1.8.0 version on my self-hosted server. I successfully uploaded a large ZIP archive (~40GB) using the chunked uploa...
- Beginner Unity game
In tutorial creator get new words, but i dont I dont lnow what problem https://www.youtube.com/watch?v=vQY4jsho1nQ 11:17
- [SOLVED] What does avatars.getInitials r...
I am using this function and on logging the value i am getting something like `{"_h": 0, "_i": 0, "_j": null, "_k": null}` here is the code i used ```export fun...