How to use the tiny-emitter/instance.once function in tiny-emitter

To help you get started, we’ve selected a few tiny-emitter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github syousif94 / frugalmaps / frugalapp / src / MapScreen.js View on Github external
componentDidMount() {
    emitter.on("fit-bounds", this._fitBounds);
    emitter.on(MapScreen.mapId, this._showLocation);
    emitter.once("enable-markers", this._enableMarkers);
  }

tiny-emitter

A tiny (less than 1k) event emitter library

MIT
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis