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.

Missing Dependent Keys

See original GitHub issue

First of all, I just wanted to say well done with this addon!

I have been playing around with this repo that last couple of days and found that there are a good amount of macros that do not have the correct dependents specified. Im not really sure if this has to do directly with ember-macro-helpers or just how this repo is parsing everything.

Object: getBy

myObj: { foo: 'bar' },
someProp: 'foo',
getBy('myObj', 'someProp')

This only adds myObj and someProp as the dependents but it should actually be myObj.someProp.

Array Macros

All (at least the ones I’ve used) of the array macros do not include the necessary dependents to recompute.

filterBy, mapBy, isAny, isEvery, etc do not include array.@each.key and the rest do not include array.[]. They only seem to include array and key if present but that is not correct.

To get around that, you have to create intermediate properties which I think can be easily avoided if the necessary dependent keys are added.

Environment

Ember-CLI: 2.12 Ember: 2.12 Ember-Awesome-Macros: 0.36.0 Ember-Macro-Helpers: 0.14.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kellyseldencommented, May 19, 2017

Yea a macro that uses createClassComputed inside another computed had an issue that I fixed a few minutes ago in #337. If you change that twiddle to:

"ember-awesome-macros": "0.36.1",
"ember-macro-helpers": "0.15.0"

It should work.

0reactions
offirgolancommented, May 31, 2017

@kellyselden feel free to close this issue once getBy has been fixed 😄

Thanks again for all the hard work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can defaultdict accept callables dependent on the given ...
What I expect is whenever I give a missing key string, for example 'barr' , the container can create a new entry with...
Read more >
Print Driver Missing “Dependent Files” - Pharos Community
The corrupted / missing values within the registry, typically within the “Dependent Files” key, will cause inconsistent and unexpected ...
Read more >
Missing dependent variables in fixed-effects models
This paper considers estimation of linear fixed-effects models in which the dependent variable may be missing. For cross-sectional units with dependent ...
Read more >
3 common foreign key mistakes (and how to avoid them)
Dangling foreign keys 3. Not creating foreign key indexes Bonus: Not using foreign keys Key takeaway: think before you CREATE TABLE.
Read more >
Dealing with missing data: Key assumptions and methods for ...
This tech report presents the basic concepts and methods used to deal with missing data. After explaining the missing data mechanisms and the...
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