You can use the virtualAction
function from the rxjs
library to create an action subject that can be subscribed to and have actions emitted to it. Here is an example of how to use it:
index.tsx206 chars11 lines
In this example, we create a new virtualAction
subject and subscribe to it to log any actions emitted to it. Then we emit an action with the next
method. This can be useful for creating reactive systems and managing state in your application.
gistlibby LogSnag