useEffectFn use with createEffectFn stop working after emitting error #34
Replies: 3 comments 1 reply
-
Can you share an example, please? |
Beta Was this translation helpful? Give feedback.
-
I mean, any code from pages like this:
If the searchTodoEffect's logic goes to error or complete, we can't invoke page's searchTodo function anymore. I think the original problem is using rxjs Subject, if the stream complete or error, the Subject can't be used anymore. How can we fix this problem? |
Beta Was this translation helpful? Give feedback.
-
I rewrited the createEffectFn and solved my problem. Of course, without using rxjs Subject. My code:
The original createEffectFn code:
|
Beta Was this translation helpful? Give feedback.
-
Description
I found that any functions created from useEffectFn and createEffectFn won't work after emitting error.
Proposed solution
Any solution that let outer function continue working after error.
Alternatives considered
n/a
Do you want to create a pull request?
No
Beta Was this translation helpful? Give feedback.
All reactions