0.0.11 • Published 5 years ago

carry-on-notify v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

carry-on-notify

carry-on plugin that notifies subscribers when state changes.

Usage

import notifyListeners from "carry-on-notify";
import { Store } from "carry-on-react";

const notify = notifyListeners();

const subscriber = state => {
  console.log('state changed', state);
};

const unsubscribe = notify.subscribe(subscriber);

const App = () => (
  <Store plugins={notify.plugin}>
  </Store>
);
0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago