adopted-ember-addons / adopted-ember-addons/ember-changeset
Modifying a buffered property of a changeset invalidates all buffered properties
- Lingua principale
- JavaScript
- Stelle
- 425
- Fork
- 136
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Got a weird one here. Not sure if it's intentional but I suspect not. Essentially, changing any buffered property of an ember-changeset causes the observers of all buffered properties to fire (i.e. the whole buffer is invalidated). If you have an underlying object with lots of properties and associated DOM, this can get real messy, real fast. I put together a basic repro that shows (clearly, I hope) the differences in behavior between a POJO and an ember-changeset.
## Version
3.0.6
## Test Case
https://github.com/mwpastore/-ember-changeset-notify

## Steps to reproduce
Modify any buffered property of a changeset.
## Expected Behavior
Only observers of the modified property should fire.
## Actual Behavior
Observers of all properties fire.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.