
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
ember-component-action-bubbling
Advanced tools
This addon allows you to call an action from a nested component
and have it bubble up the hierarchy all the way to the root component, then
on to the current controller, its route, eventually reaching the application
route, simliar to how Controller and Route's send()
works in Ember:
Bubbling will continue while actions along the chain keep returning true
,
until reaching the application route.
If a component along the chain does not implement the action, bubbling will skip to its parent.
The addon is very simple and all it does is reintroduce behaviour that was already present thanks to this lovely little bug.
ember install ember-component-action-bubbling
// parent
export default Ember.Component.extend({
actions: {
say(something) {
console.log('repeating', something); // stops here
}
}
});
// child
export default Ember.Component.extend({
actions: {
say(something) {
console.log('saying', something);
return true; // continues
}
}
});
// grand child
export default Ember.Component.extend({
click() {
this.bubble('say', 'Hello!');
}
});
FAQs
Bubble actions in Ember components.
The npm package ember-component-action-bubbling receives a total of 0 weekly downloads. As such, ember-component-action-bubbling popularity was classified as not popular.
We found that ember-component-action-bubbling demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.