Skip to content

keajs/kea-loaders

Repository files navigation

NPM Version minified minified + gzipped Backers on Open Collective Sponsors on Open Collective

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:

yarn add kea-loaders

... then add it to kea's plugins list:

import { loadersPlugin } from 'kea-loaders'

resetContext({
  plugins: [loadersPlugin({ ...options })]
})

Sample usage

Read the documentation