Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dyad-fsa-promise

mikol15CC-BY-SA-4.00.1.2TypeScript support: included

Dyad promise middleware with Flux Standard Action support

dyad, flux, fsa, middleware, promise

readme

Dyad FSA Promise Middleware

Installation

npm install dyad-fsa-promise

Usage

const Dyad = require('dyad')
const {middleware} = require('dyad-fsa-promise')

const store = Dyad.getInstance()

store.use(middleware)

store.bind({
  ACTION_TYPE: (_, __, action) => console.log(action.payload)
})

store.dispatch({type: 'ACTION_TYPE', payload: Promise.resolve('Hello, World!')})

// Logs 'Hello, World!'

changelog

Dyad FSA Promise Middleware Changelog

0.0.1 Initial implementation

0.0.2 Add CHANGELOG, README

0.0.3 Add missing types field

0.1.0 Nix default export