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
In a case where a component gets a stream from its props (a parent creates that stream for it), how would I use the library primitives to subscribe to the stream and get the data?
The observable is created in the parents of the component and cant be imported as a singleton by require/import js file.
From the examples and docs I've looked at, it seems bind and others are used as singletons, that are used when the js module is imported. Is there a useObservable kind of hook that can be used?
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
-
Thank you for a great library.
In a case where a component gets a stream from its props (a parent creates that stream for it), how would I use the library primitives to subscribe to the stream and get the data?
The observable is created in the parents of the component and cant be imported as a singleton by require/import js file.
From the examples and docs I've looked at, it seems
bind
and others are used as singletons, that are used when the js module is imported. Is there auseObservable
kind of hook that can be used?Beta Was this translation helpful? Give feedback.
All reactions