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
Trying to insert value into list signal before reading the value for the first time always fails with an error:
Caused by: java.lang.IllegalStateException: Signal not found for client signal: 7r5ynGjRRkDNyqwdhU23X
at com.vaadin.hilla.signals.handler.SignalsHandler.update(SignalsHandler.java:94)
Expected-behavior
Insert should work everytime
Workaround is to read the list signal value before inserting any values
There could be a small problem that needs investigation:
The fix we merged last week might still not work for a specific case:
If a ListSignal is conditionally rendered, e.g. checking the items.length === 0 to show a placeholder message such as "no items yet..." and the user does not interact with it, the signal may never subscribe to receive the updates that triggers renders.
Why does items have a length property? Should work properly if you do items.value.length since you're then actually reading the signal's value. As we discussed at some point previously, we should prefer to "force" the developer to use .value to make the signal relationship clear rather than providing shorthands.
Describe the bug
Trying to insert value into list signal before reading the value for the first time always fails with an error:
Expected-behavior
Insert should work everytime
Workaround is to read the list signal value before inserting any values
Reproduction
Project to reproduce: my-app-listsignal.zip
System Info
Hilla: 24.6.0.alpha1
The text was updated successfully, but these errors were encountered: