You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to propose a custom RxJS operator to handle CallState updates more concisely for basic use cases. The goal is to avoid repeating the same patchState blocks everywhere.
Here is a base implementation that handles both default and named call states (this is a starting point that could be improved in terms of typing, naming, or additional features if you have any ideas):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’d like to propose a custom RxJS operator to handle
CallStateupdates more concisely for basic use cases. The goal is to avoid repeating the samepatchStateblocks everywhere.Instead of writing this:
We could simply use:
Here is a base implementation that handles both default and named call states (this is a starting point that could be improved in terms of typing, naming, or additional features if you have any ideas):
I'm interested to hear your thoughts on this!
Beta Was this translation helpful? Give feedback.
All reactions