proppy icon indicating copy to clipboard operation
proppy copied to clipboard

Return an async iterable

Open fabiancook opened this issue 6 years ago • 1 comments

This would give a "native" way to consume changes.

A possible example of usage...

import { withProps } from 'proppy';

const P = withProps({ counter: 1 });

const p = P();

for await (const value of p.subscribe()) {
  console.log({ value });
}

fabiancook avatar Nov 27 '19 07:11 fabiancook

Hi @fabiancook!

This looks interesting. Do you have any PoC for this? I can investigate if it's worth exploring it then.

fahad19 avatar Dec 24 '19 12:12 fahad19