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

Disabled dangling branches lead to runtime differences in subscription behavior #2007

Open
bruno-f-cruz opened this issue Sep 8, 2024 Discussed in #2006 · 0 comments
Open

Comments

@bruno-f-cruz
Copy link
Contributor

Discussed in https://github.com/orgs/bonsai-rx/discussions/2006

Originally posted by edmundchong September 8, 2024
I created a frequently updated BehaviorSubject which I pass through some conditional statements. However, there are strange effects from nodes that are commented out (but still connected). Here is a toy example which isolates the issue:

image

In this case mySubject is only initialized once but is propagated 3 times.

When the commented out node is deleted or simply connected on the other end like the rest of the Condition nodes, everything is fine:
image.

The same behavior happens also if I e.g. replace Merge with Zip or CombineLatest or Amb.

Workflow attached below.

foo.bonsai.zip

@bruno-f-cruz bruno-f-cruz changed the title Disabled hanging braches lead to runtime differences in subscription behavior Disabled dangling branches lead to runtime differences in subscription behavior Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant