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.

Show computed property dependent keys

See original GitHub issue

Now to get understanding about cp depended keys you need to investigate object in console or taking a look into source code.

Computed property has _dependentKeys array, any ideas how this content can be shown in object debugger?

How to extract all object’s computed props?

var emberObject = $E;

Object.keys(temp2.__proto__)
	.filter(key=>typeof emberObject [key] === 'object' && emberObject[key]._dependentKeys)
	.reduce((collector, key)=>{
		collector[key] = emberObject[key]._dependentKeys.slice(0);
		return collector;
	},{})

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nummicommented, Apr 29, 2018

@rwwagner90, close?

0reactions
rwwagner90commented, Apr 29, 2018

This PR was merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

set the dependent keys of a computed property at run time
1 Answer 1 ... In computed property dependent key, can only be string or any global function which return string but you can't...
Read more >
Ember Computed Properties with Computed Dependent Keys
I want the ability to declare a computed property whose dependent key(s) are actually the value of another computed property.
Read more >
Computed Properties - The Object Model - Ember Guides
You create one by defining a computed property as a function, which Ember will ... you can setup multiple dependent keys by using...
Read more >
Computed Properties with Dynamic Dependent Keys in Ember
Leveraging dynamic dependent keys in computed properties opens the door to greater refactoring. These helper functions which return a computed ...
Read more >
Computed Properties and Watchers - Vue.js
A computed property will only re-evaluate when some of its reactive dependencies have changed. This means as long as message has not changed,...
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