-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] [3.23.0] Helper recomputation regression #19277
Comments
The thing that is happening here is that the helper is not recomputing unless the specific argument was accessed (e.g. "entangling" in the auto-tracking sense). This is likely due to changes made in #19160 (which implemented helper managers) to pass in the args proxy instead of eagerly entangling. I don't have a good intuition about what folks expected originally here (and I don't think |
It is pretty unfortunate, but I think we have to roll back on that change (to use the args proxy) to avoid breaking folks relying on the prior behavior. |
Thanks for reporting @boris-petrov, and for the minimal demo repo! |
@rwjblue - thanks for the comments. This is definitely a breaking change, however I'm not sure whether the commit that brought it is not "more important" and necessary for further work on the framework. As you see, the workaround here is pretty trivial (and as you say there never was a formal spec for helpers) so you could just call it a won't fix - again - only if there isn't an "easy" fix that won't impede future work. |
Ya, I'm currently thinking if there is a way to do "both" things. They seem pretty mutually exclusive though. The one idea that I had was to allow |
Maybe expose this config as an optional feature? Or have a new Two further issues I noticed:
|
No. Can you open a specific issue for that? |
I'm interpreting this as the OP being fine with closing. By closing some old issues we reduce the list of open issues to a more manageable set. Let me know if you think this is a mistake and that the issue should stay open. |
🐞 Describe the Bug
A helper doesn't recompute when its argument changes.
🔬 Minimal Reproduction
This repo reproduces the problem. Running the app will show only "5" and not change to "10" (which it must). Downgrading Ember's version to 3.22 (or uncommenting the commented-out line) fixes the issue.
😕 Actual Behavior
The helper doesn't recompute.
🤔 Expected Behavior
The helper to recompute.
The text was updated successfully, but these errors were encountered: