Skip to content
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

Error: You must use Ember.set() to set the scheduledRevalidation property #559

Closed
Turbo87 opened this issue Jun 26, 2016 · 6 comments
Closed

Comments

@Turbo87
Copy link
Member

Turbo87 commented Jun 26, 2016

I'm using https://github.com/offirgolan/ember-cp-validations for show a form on one of my apps and once I view the corresponding component with the inspector and change a value in the form I get the following error:

Uncaught Error: Assertion Failed: You must use Ember.set() to set the `scheduledRevalidation` property (of <skylines@component:profile-settings-panel::ember585>) to `true`.
    EmberError @ ember-vendor-a8ce3a3b.js:16881
    assert @ ember-vendor-a8ce3a3b.js:6711
    assert @ ember-vendor-a8ce3a3b.js:16635
    SETTER_FUNCTION @ ember-vendor-a8ce3a3b.js:20602
    exports.default._emberMetalMixin.Mixin.create._Mixin$create.scheduleRevalidate @ ember-vendor-a8ce3a3b.js:43911
    (anonymous function) @ ember-vendor-a8ce3a3b.js:14164
    notifySubscribers @ ember-vendor-a8ce3a3b.js:22559
    notifyExcept @ ember-vendor-a8ce3a3b.js:22499
    notify @ ember-vendor-a8ce3a3b.js:22493
    notifySubscribers @ ember-vendor-a8ce3a3b.js:22561
    notifyExcept @ ember-vendor-a8ce3a3b.js:22499
    notify @ ember-vendor-a8ce3a3b.js:22493
    notifySubscribers @ ember-vendor-a8ce3a3b.js:22561
    notifyExcept @ ember-vendor-a8ce3a3b.js:22499
    notify @ ember-vendor-a8ce3a3b.js:22493
    apply @ ember-vendor-a8ce3a3b.js:23593
    sendEvent @ ember-vendor-a8ce3a3b.js:17138
    notifyObservers @ ember-vendor-a8ce3a3b.js:21028
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20855
    (anonymous function) @ ember-vendor-a8ce3a3b.js:20930
    Meta._forEachIn @ ember-vendor-a8ce3a3b.js:19060
    Meta.(anonymous function) @ ember-vendor-a8ce3a3b.js:19032
    iterDeps @ ember-vendor-a8ce3a3b.js:20918
    dependentKeysDidChange @ ember-vendor-a8ce3a3b.js:20895
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20851
    (anonymous function) @ ember-vendor-a8ce3a3b.js:20930
    Meta._forEachIn @ ember-vendor-a8ce3a3b.js:19060
    Meta.(anonymous function) @ ember-vendor-a8ce3a3b.js:19032
    iterDeps @ ember-vendor-a8ce3a3b.js:20918
    dependentKeysDidChange @ ember-vendor-a8ce3a3b.js:20895
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20851
    notify @ ember-vendor-a8ce3a3b.js:14925
    chainsDidChange @ ember-vendor-a8ce3a3b.js:20944
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20854
    (anonymous function) @ ember-vendor-a8ce3a3b.js:20930
    Meta._forEachIn @ ember-vendor-a8ce3a3b.js:19060
    Meta.(anonymous function) @ ember-vendor-a8ce3a3b.js:19032
    iterDeps @ ember-vendor-a8ce3a3b.js:20918
    dependentKeysDidChange @ ember-vendor-a8ce3a3b.js:20895
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20851
    notify @ ember-vendor-a8ce3a3b.js:14925
    chainsDidChange @ ember-vendor-a8ce3a3b.js:20944
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20854
    set @ ember-vendor-a8ce3a3b.js:21238
    setValue @ ember-vendor-a8ce3a3b.js:22209
    setValue @ ember-vendor-a8ce3a3b.js:23055
    setValue @ ember-vendor-a8ce3a3b.js:22144
    setValue @ ember-vendor-a8ce3a3b.js:22263
    update @ ember-vendor-a8ce3a3b.js:10769
    legacyPropertyDidChange @ ember-vendor-a8ce3a3b.js:46907
    AttrsProxyMixin.(anonymous function) @ ember-vendor-a8ce3a3b.js:41645
    propertyDidChange @ ember-vendor-a8ce3a3b.js:20843
    set @ ember-vendor-a8ce3a3b.js:21238
    setValue @ ember-vendor-a8ce3a3b.js:22209
    setValue @ ember-vendor-a8ce3a3b.js:23055
    setValue @ ember-vendor-a8ce3a3b.js:22144
    setValue @ ember-vendor-a8ce3a3b.js:22263
    update @ ember-vendor-a8ce3a3b.js:10769
    legacyPropertyDidChange @ ember-vendor-a8ce3a3b.js:46907
    AttrsProxyMixin.(anonymous function) @ ember-vendor-a8ce3a3b.js:41645
    set @ ember-vendor-a8ce3a3b.js:21243
    _elementValueDidChange @ ember-vendor-a8ce3a3b.js:42899
    apply @ ember-vendor-a8ce3a3b.js:23591
    sendEvent @ ember-vendor-a8ce3a3b.js:17138
    trigger @ ember-vendor-a8ce3a3b.js:34970
    trigger @ ember-vendor-a8ce3a3b.js:46125
    superWrapper @ ember-vendor-a8ce3a3b.js:23402
    run @ ember-vendor-a8ce3a3b.js:968
    join @ ember-vendor-a8ce3a3b.js:992
    run.join @ ember-vendor-a8ce3a3b.js:21471
    handleEvent @ ember-vendor-a8ce3a3b.js:46997
    exports.default._emberMetalMixin.Mixin.create._Mixin$create.handleEvent @ ember-vendor-a8ce3a3b.js:43945
    _bubbleEvent @ ember-vendor-a8ce3a3b.js:45032
    (anonymous function) @ ember-vendor-a8ce3a3b.js:44974

/cc @offirgolan

@teddyzeenny
Copy link
Contributor

Seems like scheduledRevalidation is being set without Ember.set. If it's private renaming it to _scheduledRevalidation will fix the problem since the inspector will know not to observe it.

What is scheduledRevalidation property and any idea who defines it and sets it?

@krisselden
Copy link

it should be moved to the renderer, not sure why it would be observed and it should have used an underscore if placed on the view. not that it helps now

@teddyzeenny
Copy link
Contributor

@krisselden when you open an object in the inspector's Object Inspector it observes all non-private (non-underscored) properties that it lists to keep them up to date. An underscore would have prevented the issue as it wouldn't have been listed in the first place.

@RobbieTheWagner
Copy link
Member

Is this still an issue or can we close?

@Turbo87
Copy link
Member Author

Turbo87 commented Apr 5, 2018

let's close it, I'll reopen if I hit it again

@Turbo87 Turbo87 closed this as completed Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants