Skip to content

get helper not working on promise proxy arrays #20510

Closed

Description

@amk221

🐞 Describe the Bug

get helper not working with promise proxy arrays

🔬 Minimal Reproduction

https://ember-twiddle.com/75a0587be8b073980c040acb94542c68?openFiles=templates.application%5C.hbs%2C

😕 Actual Behavior

Does not return item from array

🤔 Expected Behavior

Expecting item from array to be returned

🌍 Environment

  • Ember: 4.12
  • Node.js/npm: 18.16 / 9.5.1
  • OS: mac
  • Browser: chrome

➕ Additional Context

I was trying to action this lint warning:

Array prototype extension property firstObject usage is disallowed. Please use Ember's get helper instead. e.g. {{get @list '0'}} (fixable)ember-template-lintno-array-prototype-extensions

Activity

  1. amk221 commented on Jul 25, 2023

    @amk221
    Author

    I suppose it may not actually a bug, if I were to use firstObject.

    Perhaps it's the lint rule that is wrong?

  2. kategengler commented on Aug 29, 2023

    @kategengler
    Member

    firstObject is part of the array prototype extensions that were deprecated in 3.x with https://rfcs.emberjs.com/id/0848-deprecate-array-prototype-extensions/ so the lint is correct.

  3. changed the title [-][Bug] get helper not working on promise proxy arrays[/-] [+]get helper not working on promise proxy arrays[/+] on Aug 29, 2023
  4. kategengler commented on Jun 22, 2026

    @kategengler
    Member

    Noting that this is unlikely to be addressed, proxies are set to be deprecated emberjs/rfcs#1135

  5. amk221 commented on Jun 23, 2026

    @amk221
    Author

    Happy to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions