-
Notifications
You must be signed in to change notification settings - Fork 427
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
[state] bind-for
entity components don't update when non-key values change
#244
Comments
This is happening in version |
@dsinni For me this works by using A-Frame: 0.9.2 Here is a working fiddle: https://jsfiddle.net/marlon360/3Lzmc65u/ |
thanks i tried updating the readme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure if this is related to #243, as I've been forced to use the interpolation method for updating values (e.g.,
text="value: {{username}};"
), due tobind-item
not working as expected.The issue is that I can't seem to get the bound entity components to update if the
key
does not change in the object.As am example, I'd like to be able to update
username
in the following object, while usingclientId
as thekey
, since it is unique.I've come up with a hacky workaround by using a separate id which is assigned a value with
Date.now()
appended, but then I need to remove and replace the user in order to get any updates, which also disturbs the display order.To clarify, I can update the value in state, but changes are not reflected in the bound components.
I've tried using
state.users.__dirty = true;
to no avail.Any guidance would be awesome.
Thanks for all you do.
The text was updated successfully, but these errors were encountered: