Comments (5)
@truenorth Cool, let me know how I can help! :)
from ember-cli-flash.
this project looks great, really nice!
This pass is mostly superficial, I will take some time tomorrow to use this in an app, and give better feedback.
I'm leaving some my comments in the form of todos, so that myself or someone else interested can make the appropriate updates :)
-
https://github.com/poteto/ember-cli-flash/blob/develop/addon/components/flash-message.js
run.scheduleOnce('afterRender', this, () => {
the onceness is detected based on thethis
and the function, but in this case the function is recreated on each call, soonce
can never happen -
many of the
computed
should actually be marked as readOnly- https://github.com/poteto/ember-cli-flash/blob/develop/addon/components/flash-message.js#L39-L47
- https://github.com/poteto/ember-cli-flash/blob/develop/addon/components/flash-message.js#L32
- https://github.com/poteto/ember-cli-flash/blob/develop/addon/components/flash-message.js#L20
- https://github.com/poteto/ember-cli-flash/blob/develop/addon/components/flash-message.js#L18
- https://github.com/poteto/ember-cli-flash/blob/develop/addon/flash/object.js#L13-L20
- https://github.com/poteto/ember-cli-flash/blob/develop/addon/services/flash-messages-service.js#L21-L28
-
missing
super
-
state on prototype (these should likely be moved to init)
-
funky indentation: https://github.com/poteto/ember-cli-flash/blob/develop/addon/services/flash-messages-service.js#L77
-
skipped tests https://github.com/poteto/ember-cli-flash/blob/develop/tests/acceptance/integration-test.js#L24-L45, likely missing
andThen
from ember-cli-flash.
Thanks for the review @stefanpenner!
-
run.scheduleOnce('afterRender', this, () => {
the onceness is detected based on thethis
and the function, but in this case the function is recreated on each call, soonce
can never happen - many of the
computed
should actually be marked as readOnly - missing
super
- state on prototype (these should likely be moved to init)
- funky indentation: https://github.com/poteto/ember-cli-flash/blob/develop/addon/services/flash-messages-service.js#L77
- skipped tests https://github.com/poteto/ember-cli-flash/blob/develop/tests/acceptance/integration-test.js#L24-L45, likely missing
andThen
- related – #32
from ember-cli-flash.
Thanks for making all of these improvements @poteto. We really appreciate it!
from ember-cli-flash.
👍
from ember-cli-flash.
Related Issues (20)
- @ember-decorators/component dependency missing HOT 1
- Cannot Use Selectors on Flash Message HOT 2
- Duplicate version tags HOT 1
- preventDuplicates w/ custom dedupe property
- Installation crashes with: [ember-cli-version-checker] 'checker.forEmber' has been removed, please use 'checker.for(`ember-source`)' HOT 2
- Throws when used with ember-cli-babel `includeExternalHelpers: true`
- Using a modifier for flash-message component
- [DEPRECATE] getWithDefault HOT 1
- Ember 3.24: installing ember-cli-flash throws error from ember-cli-version-checker HOT 1
- type definitions do not work / are not detected HOT 8
- Fix `this-property-fallback` deprecation warnings
- The `did-insert` modifier is missing
- Does this addon still need the "ember-runtime-enumerable-includes-polyfill" dependency?
- Ember 3.26+: `manager-capabilities.modifiers-3-13` deprecation
- Cut a major 3.0 release HOT 12
- Deprecations in Ember v4.0+ HOT 1
- Error passing in unknown MessageOptions in TypeScript
- flashMessages is not working in newly create ember app HOT 1
- How do you add to the queue via template?
- Release planning HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-flash.