How to use the @polkadot/rpc-core/rxjs.drr function in @polkadot/rpc-core

To help you get started, we’ve selected a few @polkadot/rpc-core 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 polkadot-js / api / packages / api-derive / src / util / memo.ts View on Github external
(...params: any[]): Observable =>
      Observable.create((observer: Observer): VoidCallback => {
        const sub = inner(...params).subscribe(observer);

        return (): void => {
          cached.delete(...params);
          sub.unsubscribe();
        };
      }).pipe(drr()),
    { normalizer }

@polkadot/rpc-core

A JavaScript wrapper for the Polkadot JsonRPC interface

Apache-2.0
Latest version published 2 days ago

Package Health Score

90 / 100
Full package analysis

Similar packages