# New Emoji picker feedback

**URL:** <https://meta.discourse.org/t/new-emoji-picker-feedback/66447>\
**Category:** Announcements\
**Tags:** new-feature\
**Created:** [19 يوليو 2017، 4:36م UTC](https://meta.discourse.org/t/new-emoji-picker-feedback/66447 "2017-07-19T16:36:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [19 يوليو 2017، 4:48م UTC](https://meta.discourse.org/t/new-emoji-picker-feedback/66447/3 "2017-07-19T16:48:18Z")

</div>

It’s looking rad! I reviewed the code locally and here are some notes:

### d-editor.js.es6

- ~~You should declare `emojiPickerIsActive: false` at the top of the component. Javascript is a lot faster when it knows the shape of objects in advance.~~

### emoji-picker.js.es6

- ~~`resolveTemplate` calls should not happen in the main scope of the file. This might lead to confusing results when the resolver/app has not booted properly, or if a plugin wants to change something after you’ve already looked it up. I’d recommend instead looking up the template when you need it.~~

- ~~There are a bunch of constants that seem to be exported just so the acceptance test can clear them out. Instead, why not export a method called `resetCache` that will do the clearing? That way the test doesn’t need to know how the component is implemented. Also, exporting less things is generally better.~~

- We discussed this briefly, but is there any way the `@observes` can be replaced with callbacks from [the ember component lifecycle](https://guides.emberjs.com/v2.6.0/components/the-component-lifecycle/)? If not that’s cool, I just want to know if you looked into it.

- ~~Why does `_later` exist and avoid doing async work in testing? Also, I suspect `later` is the wrong callback here. Perhaps you want `Ember.run.scheduleOnce('afterRender', ...)`?~~

- `unbindEvents` seems to be doing a lot less than `bindEvents` – are we sure every event has been removed?

### emoji-picker-raw.hbs.erb

- ~~If you use `Emoji.url_for` in the template, doesn’t that bake the current emoji set into the template? What happens if the emoji set changes and the template has already been baked like in production mode? I guess what I’m asking here is are we sure that changing the emoji set still works in production mode with this code?~~

---

_[View the full topic](https://meta.discourse.org/t/new-emoji-picker-feedback/66447)._
