flovv
TypeScript icon, indicating that this package has built-in type declarations

2.1.17 • Public • Published

FLOVV

A library for controlling app flows with ease

Installation

NPM

npm i flovv --save

YARN

yarn add flovv

React Bindings

Redux Bindings

import { createController } from "flovv";
import { select, dispatch } from "flovv/redux";
import { createStore } from "redux";

const store = createStore((state = 0, { type }) => {
  if (type === "increment") return state + 1;
  return state;
});
function* Increment() {
  const count = yield select((state) => state);
  yield dispatch({ type: "increment" });
}

API References

Effects

retry(times, fn, ...args)

remove(key)

debounce(ms)

cancel()

cancel(cancellable)

cancel(key)

cancel(flow)

stale("when", promise)

stale("when", timeout)

stale("when", event, [checkFn])

stale("flow", flows, [checkFn])

partial(data)

partial(data, wait)

on(event)

on(event, flow, ...args)

Examples

Package Sidebar

Install

npm i flovv

Weekly Downloads

8

Version

2.1.17

License

MIT

Unpacked Size

143 kB

Total Files

26

Last publish

Collaborators

  • linq2js