use-async-cache
a simple react hooks implement for async cache store;
a list of
[element1, ..., elementn]
useasync-date from same api
。[element1, ..., elementn]
will share same async-cache,api
will request once。
see more props
Install
npm install
Usage
api will only request once
;; ; ;
; ; ;
api.cache.fetch will only request once for 10 element
Author
👤 JW
- Twitter: @jiangweixian
- Github: @JiangWeixian
Show your support
Give a ⭐️ if this project helped you!

This README was generated with ❤️ by readme-md-generator