1.6.11 • Published 3 years ago
react-cache-api v1.6.11
React Cache API
React Cache API is a React Hooks library for data fetching.
It was inspired by the swr.
🚀Quick Overview
// Please wrap the component to call useCacheApi with this component.
// In the case of nextJS, it is recommended to wrap the component in the _app file.
<CacheApiConfig baseURL="https://yourapibaseurl">
<Component />
</CacheApiConfig>
// If the response value is cached, return cached value.
// If not, request api through fetch.
const { data, error, isValidation } = useCacheApi('/', query)
// Even if you write without a query on another page, it gets the cached value.
const { data, error, isValidation } = useCacheApi('/')
✨Feature
- When using the cache, it is not necessary to write the boiler plate code due to query.
👏 Contributing
Pull requests and 🌟 stars are always welcome.
For major changes, please open an issue first to discuss what you would like to change.
☕ Donate
Please buy me coffee so that I can continue to make convenient packages.
📩 Contact
awmaker@kakao.com
Others
👍 We recommend third-party services with react-cache-api.
- We recommand nextJS service for more convenient react use.
1.6.11
3 years ago
1.6.10
3 years ago
1.6.9
3 years ago
1.6.8
3 years ago
1.6.7
3 years ago
1.6.6
3 years ago
1.6.5
3 years ago
1.6.4
3 years ago
1.6.3
3 years ago
1.6.2
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.3
3 years ago
1.5.2
3 years ago
1.5.1
3 years ago
1.5.0
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago