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.

BUG - info object can be undefined

See original GitHub issue

https://github.com/danielspaniel/ember-data-change-tracker/blob/c73b707e0d653c86423c0ccc9a8d9b98947cd27b/addon/tracker.js#L345

In the isKnown function, the info variable can be empty, due to the only option. If the only option does not contain the provided key, this.metaInfo(model, key) returns undefined and naturally the function fails.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danielspanielcommented, Nov 12, 2019

v0.9.3 has the fix from #72

0reactions
richardfrosztegacommented, Nov 11, 2019

Hi @pjcarly, @BnitoBzh,

I’ve followed up on the original change with the pull request above. It’s difficult for me to prove this is what you need without some unit/acceptance tests from yourselves. But I’ve reasoned it though and think this might help.

Please feel free to see if this is what you need and talk to @danielspaniel about integration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why the 'info' object is undefined? - javascript - Stack Overflow
Most likely info is not being set because there is an error. You would have to confirm by looking at their source. You...
Read more >
Object is possibly 'undefined' error in TypeScript | bobbyhadz
The "Object is possibly 'undefined'" error occurs when we try to access a property on an object that may be `undefined` (e.g. marked...
Read more >
undefined - JavaScript - MDN Web Docs - Mozilla
The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types.
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong...
Read more >
Getting error "The undefined value has no properti...
You are getting this error because you are trying to access a property of an object that doesn't exist. I have explained this...
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