Closed bruceharris closed 2 years ago
:wave: @bruceharris !
First and foremost: thanks a lot for taking the time to report this issue, and for providing a codesandbox along with an excellent explanation of the bug. :bow:
Fortunately, just a few minutes before you opened this issue we managed to merge a fix on #273 and we also published its patch on 0.9.8
.
You can see in this codesandbox (based on yours) that the issue has now been fixed.
Once again, thanks for taking the time to report the issue! much, much appreciated!
Under certain circumstances, a
<Subscribe>
with a nested component that uses a hook returned frombind()
, where the observable emits an error, causes an infinite loop.In the code example below, executable here, uncommenting the
throw()
on line 6 results in an infinite loop with the error being swallowed. Per discussion with @voliva who investigated this further, it seems that if and only if all of these conditions apply:bind
doesn't have a default value<Subscribe>
then the error is swallowed, and the component retries getting the value again