Skip to content

How to trigger multiple actions with a signalSlice? #433

Closed Answered by joshuamorony
kisamoto asked this question in Q&A
Discussion options

You must be logged in to vote

@kisamoto you should be able to do this by having your actionSource switchMap to the http request to the backend (and also map the response to the appropriate partial of the state) and then to satisfy the other requirement to immediately update the local state you can pipe on startWith to the http request and have it emit the partial you want to set immediately

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kisamoto
Comment options

Answer selected by kisamoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants