Skip to content

Why am I not receiving an Action after entering text in the textField? #3266

Answered by MaraMincho
DeokHo98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DeokHo98

That's not the navigation approach that TCA aims for. When examining your code, I see that the reducer is initialized in the view, which doesn't follow a tree-based or stack-based navigation method. In practice, every time the parent reducer State changes(SearchFeature), the reducer and store initialization are repeatedly called.

To prevent this, it's better to compose the store for declaring the view in the parent reducer.

Replies: 1 comment 2 replies

Comment options

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

@DeokHo98
Comment options

Answer selected by DeokHo98
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