Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when subscribing to an observable #1

Closed
abdullahmorrison opened this issue Apr 3, 2022 · 2 comments
Closed

Infinite loop when subscribing to an observable #1

abdullahmorrison opened this issue Apr 3, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@abdullahmorrison
Copy link
Owner

When subscribing to the board to check for a bingo, I want to dispatch the bingo action, but that causes an infinite loop because the dispatch creates a new stream which checks if there is a bingo and dispatches the same action.

Assignees: @abdullahmorrison
Labels: bug

@abdullahmorrison abdullahmorrison self-assigned this Apr 3, 2022
@abdullahmorrison abdullahmorrison added the bug Something isn't working label Apr 3, 2022
@abdullahmorrison
Copy link
Owner Author

Solved with a throttle (kind of hacky)

@abdullahmorrison
Copy link
Owner Author

created improved solution by refactoring the observable

@abdullahmorrison abdullahmorrison changed the title Infinite loop when subsribing to an observable Infinite loop when subscribing to an observable Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant