Best Practices
Best practices practiced and refined in real projects, I hope it will be helpful to you.
📄️ Manage APIs
In a project, we may need to use hundreds or thousands of request APIs, so managing these request APIs becomes particularly important.
📄️ Building Client-Server Interaction Layer
This is a practical experience summarized by using alova in depth. Please make sure you have mastered the content of the alova basics section before reading. You can also watch the 5-minute quick start video.
📄️ Skills
The following are the better usage skills used by alova developers when using alova. They are collected from multiple parties and organized here. I hope that everyone can use alova more smoothly.
📄️ Manage Cache with IndexedDB
If you are developing applications that require extensive use of local cache, such as graphics editing applications, file management applications, etc., the low-capacity localStorage can no longer meet the development needs. At this time, you can use IndexedDB and alova for large-capacity local cache management.
📄️ Multiple servers
If your project needs to request multiple servers, you can create multiple alova instances to correspond to different servers. In order to easily distinguish between different environments, you can also use environment variables to manage the hosts of multiple servers.
📄️ Common middleware practices
Delay update loading
📄️ Parallel Request
Use method
📄️ Serial Request
Use method