question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

waitForProperty is undefined?

See original GitHub issue

Using ember-concurrency 0.8.15 (latest)

import { task, waitForProperty } from 'ember-concurrency';


	_validityChanged: task(function*() {
		while (true) {
			yield waitForProperty(this, "validations.isValid", value => true);
			this._publishValidity();
		}
	}).on('init'),

Error:

rsvp.js:27 Uncaught TypeError: (0 , _emberConcurrency.waitForProperty) is not a function
    at Class.<anonymous> (validated-component.js:27)
    at Generator.next (<anonymous>)
    at Class._resumeGenerator (-task-instance.js:431)
    at Class._handleResolvedContinueValue (-task-instance.js:586)
    at Class._proceed (-task-instance.js:550)
    at Class._scheduleProceed (-task-instance.js:538)
    at Class._start (-task-instance.js:242)
    at Class._startTaskInstance (-scheduler.js:104)
    at Class._flushQueues (-scheduler.js:80)
    at Class.schedule (-scheduler.js:62)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
machtycommented, Feb 28, 2018

@BryanCrotaz i believe that idea is on the cli team’s agenda

1reaction
lukemeliacommented, Feb 28, 2018

side note: ember-cli-dependency-lint can be helpful in flagging this sort of risk

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wait for property in EmberJS on "server" side - Stack Overflow
The issue with the above example is that the get('itemsList') is likely to return an undefined value, based on the data race of...
Read more >
Problem with WaitProperty and WaitTime
I have a problem with WaitProperty and WaitTime. ... item, timeout){ if(timeout == undefined || timeout == "") timeout = 4000; ...
Read more >
How to use the ember-concurrency.waitForQueue function in ...
To help you get started, we've selected a few ember-concurrency.waitForQueue examples, based on popular ways it is used in public projects.
Read more >
Limelight XE Scripting Language Extension API
waitForProperty (), 2.2+, Waits a fixed number of milliseconds for a property value ... 'undefined') { // dump all object properties and their...
Read more >
wait-for-stuff - npm
Also, if the after filtering for null and undefined values the array only contains a single element, ... wait.for.property(owner, property)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found