ember.js icon indicating copy to clipboard operation
ember.js copied to clipboard

Create public import for `uniqueId` helper

Open TechieQian opened this issue 3 years ago • 1 comments

Adds public import for uniq-id

https://github.com/emberjs/ember.js/issues/20165

TechieQian avatar Aug 29 '22 16:08 TechieQian

Sorry, forgot about this in the midst of a bunch of other things—just kicked back off CI for it and will take another review pass later today!

chriskrycho avatar Sep 22 '22 13:09 chriskrycho

Sorry, forgot about this in the midst of a bunch of other things—just kicked back off CI for it and will take another review pass later today!

Hey @chriskrycho , pls let me know how we should proceed here. As it stands, I dont think we could just use invokeHelper per my comment on the suggestion. Happy to dig further!

TechieQian avatar Oct 01 '22 14:10 TechieQian

Yeah, I noted that and will bring it up with folks next week! Thanks for checking in. Just had end-of-quarter extra stuff these past couple weeks.

chriskrycho avatar Oct 01 '22 14:10 chriskrycho

I met with @TechieQian and we discussed the bulk of the open issues here.

I took some (very incomplete and possibly cryptic) notes during the meeting: https://gist.github.com/wycats/6800716eb6744f63d9b9396670d5c625

The next steps are to meet about this in a spec meeting. @TechieQian is available to attend whenever the discussion is on the agenda. It's a pretty meaty topic, so we'll want to allocate plenty of time to discuss it.

wycats avatar Oct 25 '22 23:10 wycats

One observation that we made: since "functions as helpers" is now the law of the land, it basically works to export the uniqueId JS function and have people use it in <template>.

However, we'd need to be sure that we guarantee that when a function with no autotracking dependencies is used as a helper, it's never spuriously re-evaluated. I believe that this is the case today, but we'd need to be really sure.

wycats avatar Oct 25 '22 23:10 wycats

  1. This needs a rebase.
  2. Last time we were here, CI was failing, and there were open questions about how to get it the rest of the way across the line. It was not clear to me from @wycats' comment above whether it's actually unblocked here or not.

chriskrycho avatar Feb 15 '23 17:02 chriskrycho

Will happily rebase and continue when 2. Is resolved.

On Wed, Feb 15, 2023 at 12:59 PM Chris Krycho @.***> wrote:

  1. This needs a rebase.
  2. Last time we were here, CI was failing, and there were open questions about how to get it the rest of the way across the line. It was not clear to me from @wycats https://github.com/wycats' comment above whether it's actually unblocked here or not.

— Reply to this email directly, view it on GitHub https://github.com/emberjs/ember.js/pull/20171#issuecomment-1431783678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADQ4LZAOTAF2SOMFIJZLSULWXUKR3ANCNFSM576MSXVA . You are receiving this because you were mentioned.Message ID: @.***>

TechieQian avatar Feb 15 '23 18:02 TechieQian

I believe that this is the case today, but we'd need to be really sure.

I have never observed behavior to the contrary -- functions with no consumed tracked data never re-evaluate (unless the parent context is torn down and re-rendered -- which would be expected, ofc)

Can we move forward with this PR? <3

NullVoxPopuli avatar May 28 '23 19:05 NullVoxPopuli

I pushed up a rebase + some minor tweaks in #20464 -- thanks for getting this started @TechieQian !!! you're the best :tada:

NullVoxPopuli avatar May 28 '23 22:05 NullVoxPopuli

Closed by #20464.

wagenet avatar Jun 07 '23 21:06 wagenet