
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-cache-api
Advanced tools
React Cache API is a React Hooks library for data fetching.
It was inspired by the swr.
// 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('/')
Pull requests and 🌟 stars are always welcome.
For major changes, please open an issue first to discuss what you would like to change.
Please buy me coffee so that I can continue to make convenient packages.
👍 We recommend third-party services with react-cache-api.
FAQs
Save network request using cache.
We found that react-cache-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.