https://github.com/keajs/kea-loaders
https://github.com/keajs/kea-loaders
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/keajs/kea-loaders
- Owner: keajs
- License: mit
- Created: 2020-03-24T11:45:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T08:41:08.000Z (10 months ago)
- Last Synced: 2025-03-04T12:04:44.518Z (3 months ago)
- Language: JavaScript
- Size: 1000 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/kea-loaders)
[](https://bundlephobia.com/result?p=kea-loaders)
[](https://bundlephobia.com/result?p=kea-loaders)
[](#backers)
[](#sponsors)# kea-loaders
Loaders plugin for kea. Works with kea `1.0.0` and up.
## What and why?
Loaders abstract away a "request / success / failure / loading" pattern,
common in web applications.## Getting started
Add the package:
```sh
yarn add kea-loaders
```... then add it to kea's plugins list:
```js
import { loadersPlugin } from 'kea-loaders'resetContext({
plugins: [loadersPlugin({ ...options })]
})
```## Sample usage
[Read the documentation](https://keajs.org/docs/plugins/loaders)