How to use the piral-base.startLoadingPilets function in piral-base

To help you get started, we’ve selected a few piral-base 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 smapiot / piral / src / packages / piral-core / src / components / Mediator.tsx View on Github external
React.useEffect(() => {
    const { connect, disconnect } = startLoadingPilets(options);
    const notifier: PiletsLoading = (error, pilets, loaded) => {
      initialize(!loaded, error, pilets);
    };
    connect(notifier);
    return () => disconnect(notifier);
  }, []);
  // tslint:disable-next-line:no-null-keyword

piral-base

The base library for creating a Piral instance.

MIT
Latest version published 9 days ago

Package Health Score

84 / 100
Full package analysis