ember-render-modifiers
ember-render-modifiers copied to clipboard
Implements did-insert / did-update / will-destroy modifiers for emberjs/rfcs#415
[RENDERED](https://github.com/achambers/ember-render-modifiers/blob/patch-1/README.md) I recently gave a talk at EmberFest to describe the rationale and history of these modifiers, why they are considered an anti-pattern today and, most importantly, what the alternatives...
Currently the peer dependency is `^3.8 || 4` which I guess does not cover e.g. `4.1.0`?
~~This addon is already in ember-auto-import v2 so it should not be a breaking change.~~ :warning: This is breaking change Yes this addon is already ember-auto-import v2 but ember app...
e.g. in the example given in the code comments, the `this.count` is not updated in the template... https://github.com/emberjs/ember-render-modifiers/blob/master/addon/modifiers/did-insert.js#L29 in the callstack i see that `installModifier` is called with a `untrack`...
Fixes #23. When the passed `fn` to the helper is not a function, this commit improves the error message users will see, hopefully helping with the debugging process. First time...
 If passed fn for `did-insert` is not an function, it's literally udebuggable across application (there is no mentions of key name, component name, closest dom node and such)
Using modifiers on an element that is itself a classic Ember component (`@ember/component`) doesn't seem to work. This poses difficulties because the developer now has to 'know' :godmode: what the...
- Asserts an error then the function passed to `did-insert`, `did-update` and `will-destroy` is not a function. - Today the error is `fn must be a function` `fn` has another...
In the process of rewriting components to Octane and using modifiers I ran into timing issues when didRender could no longer be used. The component in question renders text and...
As Node 10 is coming up on EOL, I tried to update my project to Node 14 (and 12). In both cases, when I did, I got the following build...