You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what happens is that falsey values are not propagated to the subscriber.
again, point of interest i the line ok_button_subject.next(!!Number(pin_state)); so when .next(false) is being called, subscriber doesn't get called. ok_button_subject.next(Number(pin_state)); won't propagate either when pin_state=0
if modified to: ok_button_subject.next(pin_state+"");subscriber will get '0' and '1' values.
I would be surprised if this is intended behaviour, but want to check here.
The text was updated successfully, but these errors were encountered:
I have a setup that should propagate a value (GPIO pin state in this case) to it's subscribers:
what happens is that
falsey
values are not propagated to the subscriber.again, point of interest i the line
ok_button_subject.next(!!Number(pin_state));
so when .next(false) is being called, subscriber doesn't get called.ok_button_subject.next(Number(pin_state));
won't propagate either whenpin_state=0
if modified to:
ok_button_subject.next(pin_state+"");
subscriber will get '0' and '1' values.I would be surprised if this is intended behaviour, but want to check here.
The text was updated successfully, but these errors were encountered: