Skip to content

Instantly share code, notes, and snippets.

@spierala
Created March 29, 2021 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spierala/59cc4ec00b52c9ea746d0ef4f62d83c3 to your computer and use it in GitHub Desktop.
Save spierala/59cc4ec00b52c9ea746d0ef4f62d83c3 to your computer and use it in GitHub Desktop.
import { CounterFeatureStore } from "./counter-feature-store";
const counterFs = new CounterFeatureStore();
counterFs.counter$.subscribe(count => console.log("count:", count));
counterFs.inc();
// OUTPUT: count: 11
// OUTPUT: count: 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment