A redux-saga plugin for airglow.

Usage no npm install needed!

<script type="module">
  import airglowPluginSaga from 'https://cdn.skypack.dev/@airglow/plugin-saga';


Airglow Saga Plugin

An Airglow plugin that adds Redux Saga middleware layer to your application.


To enable, simply add the plugin:

import sagaPlugin from '@airglow/plugin-saga';

const App = () => (
  <Airglow plugins={{
    sagaPlugin({ locales })
    <AppContainer />

Adding Sagas

When Bootstraping a UI or initilizting your app, you can add new sagas:

import sagas from './sagas';

const Wrapper = props => (
      name: 'sample',
    <UIContainer {...props} />

Saga Plugin Feature

By adding the Saga Plugin, you enable a new plugin feature. Other plugins may now use the SAGA plugin hook to register their own sagas:

import { SAGA } from '@airglow/plugin-saga';
import { sagas } from 'custom-airglow-plugin';

export default function plugin() {
  return (engine) => {
    engine.plugin(SAGA, sagas);

Here we are registering our custom plugin's sagas so they can respond to Redux dispatches.