paritytech / polkadot-testnet-faucet

https://faucet.polkadot.io/
MIT License
36 stars 34 forks source link

Fixing "Invalid" error #405

Closed mutantcornholio closed 6 months ago

mutantcornholio commented 6 months ago

The source of the error was, that I treated the observables the wrong way. I expected submitAndWatch() to return a chain of events, to which I could subscribe from a bunch of sources, while it actually led to side effects being multiplied in the sources. shareReplay() returns a multicast observable that actually behaves the way I expected it to.