-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
SplitChildSignal does not re-sync when restarted #120
Comments
I tried reproducing it here: And it does reproduce. |
Thanks for reporting with a nice reproduction! In 0.14.x, this is the expected behaviour, however in v15 and up, this child signal should have synced up with the parent signal when the former was re-started (when its The root of this problem in v15 and up is that The fix is not binary compatible with Airstream v17.0.0-M6 but is binary compatible with Laminar v17.0.0-M6, and probably with most other libraries that depend on Airstream v17.0.0-M6. I will publish Airstream v17.0.0-M8 a bit later, but for now, you can try to publishLocal the latest Airstream master, and try using it with Laminar v17.0.0-M6 and other dependencies that work with it. |
Thank you for your quick response. Steps to reproduce: |
… it is available. The initial value that we used to get before can get stale if the child signal is started only after the parent signal emits some events. This is a fix for Tomas followup comment in #120.
Ah, indeed, the problem was a bit more complicated than I thought, and my initial fix was not quite right. I have reworked the solution now, and with the latest commit, it works as expected. |
The latest commit works for me. |
Hello everybody,
I've encountered an unexpected behavior of a signal created by the split operator.
First the code:
The behavior (latest laminar):
Each row of the table has a show/hide toggle button which shows a hypothetical component.
When a component is shown (attached to the dom) and the increment button is pressed, everything works as expected (both numbers in the row are updated).
When a component is hidden (not attached to the dom), the increment button is pressed, then the component is shown, only the value from
goodSig
is the current one and the value frombadSig
is old.In other words the values comming from the
badSig
are updated only when the element is mounted.Behavior of different laminar versions:
Versions
15.0.0
,16.0.0
and17.0.0-M6
exhibit the described behaviorMy local version
0.14.2
with applied fix for #95 exhibits the same behavior.Version
0.14.2
from maven behaves such that none of the values are updated when hidden (although the behavior of thegoodSig
andbadSig
differs in terms of the first mount).Best regards,
Tomas Stanek
The text was updated successfully, but these errors were encountered: