Skip to content
Discussion options

You must be logged in to vote

Is there a way to cancel all actions or do we need to keep track of all actions and cancel them all when user goes back to login state?

You don't need to cancel actions, you need to cancel effects. Actions are sent synchronously and not cancellable.

TCA's navigation tools automatically cancel effects from presented views when those views are dismissed. If you present your logged-in views using the TCA navigation tools by navigating away when the user logs out, all in-flight and long-running effects from those presented views will be cancelled.

If you aren't using TCA navigation tools, yes, you need handle effect cancellation manually.

(Caveat: I believe only the ifLet reducer tools for …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@kamcma
Comment options

@Jaeki-Lee
Comment options

@kamcma
Comment options

@jshier
Comment options

@kamcma
Comment options

Answer selected by Scocher
Comment options

You must be logged in to vote
2 replies
@Scocher
Comment options

@atsixian
Comment options

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