UNPKG

@alova/scene-react

Version:

scenario react hooks with alova.js

33 lines (18 loc) 2.18 kB
# alova request strategy (React) [![npm](https://img.shields.io/npm/v/@alova/scene-react)](https://www.npmjs.com/package/@alova/scene) [![Coverage Status](https://coveralls.io/repos/github/alovajs/scene/badge.svg?branch=main)](https://coveralls.io/github/alovajs/scene?branch=main) [![build](https://github.com/alovajs/scene/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/alovajs/scene/actions/workflows/release.yml) ![license](https://img.shields.io/badge/license-MIT-blue.svg) [alova](https://github.com/alovajs/alova) is a request strategy library, **Its mission is to make applications manage Client-Server data interaction more efficiently**, allowing developers to more elegantly implement more High performance and experience better request function. This library implements different request strategies for specific scenarios around the [core library](https://github.com/alovajs/alova). If you need to give full play to the power of alova, you can use it together with this library. ## Request Strategies ### Pagination request strategy Automatically manage paging data, data preloading, reduce unnecessary data refresh, improve fluency by 300%, and reduce coding difficulty by 50%. ### Silent commit strategy Response upon submission, greatly reducing the impact of network fluctuations, allowing your application to remain available even when the network is unstable or even disconnected. ### More strategies comming soon... ## alova example [Here are some examples that will demonstrate the power of alova](https://alova.js.org/category/%E7%A4%BA%E4%BE%8B) ## What's next? As mentioned above, the mission of alova is to propose better request management solutions for different request scenarios, and solutions for specific scenarios will be found in [**alovajs/scene**](https://github.com/alovajs/ scene), if you have an expected request scene, welcome to discuss it through [issue](https://github.com/alovajs/extensions/issues), and welcome to contribute your ingenuity through [pull requests](https://github.com/alovajs/extensions/pulls) to make alova better together. ## LICENSE [MIT](https://en.wikipedia.org/wiki/MIT_License)