Skip to content
Discussion options

You must be logged in to vote

Hi @atsixian, we tracked down the problem. It's not an issue with the library, but instead it's due to sending an action to the navManager directly in the Screen reducer:

case .goToChildScreen:
  navManager.store.send(.goTo(.childScreen()))
  return .none

This is problematic because you are running the Nav reducer inside the context of the SwitchStoreTestCase reducer, which means the Nav reducer is getting all of its dependencies from SwitchStoreTestCase. That messes things up because \.dismiss works by communicating through the dependency system.

So, in order to get back to navManager's default dependencies, you need to run store.send in a detached task (that resets the @TaskLocals that …

Replies: 1 comment 2 replies

Comment options

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

@mbrandonw
Comment options

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