-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
property change notification too broad #499
Comments
@basz Happen to have more information? |
Checkout: https://github.com/basz/ember-form which shows a console message when you click any of the buttons and change the changeset...
Edit: Just realized that |
Is this something you can work with? |
@basz Mind trying out the latest 3.5.7 if you don't mind and let me know if this is still an issue? |
no change... |
I'm not sure I see an issue in this specific repo. Glimmer components use The main thing here is that the Let me know if you have any other thoughts! |
I don’t know enough of the internals of push and pull meganisms to make a good argument. However I do see components are getting values set even when the underlaying value was not interacted with... In both old and glimmer components (also via render modifiers). I have a feeling because of the setProperty trigger inside the proxy. But again I am over my head here... this[CHANGES] is completely overwritten by a new object; this[CHANGES][key] = change would feel more natural... But again even don't know if that's related at all. (tried it, didn't work :-)) would you know of a way to enable debugging on these low-level glimmer stuff, so we can see when a property is marked for an update? Anyway... The problem I have is that I have a bunch of BsBootstrap FormElements in a form that all get value updates if one of the control changes. Not a big issue in most situations, but sometimes a control element is constructed from several other controls and their initial state is updated and rerendered. For example, I have a control that shows an image... That image is currently reloaded and results in a visual blink. Not a big deal, but still... (no critique here on my part. I love this package) |
My first inclination would be to ensure BsForm is migrated completed to new glimmer semantics. That means removing things like |
Yes that the plan for Ember bootstrap. Might be a while before that’s done... However the said behavior is also true for glimmer components. I’ve update the demo repo from above to use glimmer component also (args.value and did-insert/did-update). |
That looks like a better example! Thank you. I think #492 captures how we need to refine our autotracking abilities. Specifically |
Hello from #437 |
Reopen to see if we can use |
I’ve learned to live with it, but I can surely appreciate a fix. Thanks! Hope it al makes sense and gets merged. |
basz/ember-form#7 updated the demo for easier testing |
I'm all for merging #586. Just a few minor questions to address in that PR and we can merge. With the node 10 removal, we would have to make a major bump. So if we could push to another PR, then great. Otherwise, I'm ok merging it all at once. |
Hi,
I'm noticing that changing one property path also triggers updates to other sibling properties.
a setter (or didReceivedAttrs) is triggered for components like so when a different property in the changeset is changed...
ember-changeset@^3.5.3
validated-changeset@~0.6.5
The text was updated successfully, but these errors were encountered: