You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Yes, I think that may be a good idea for a next release. When converting to TS, there were three levels of maturity I considered, of which I landed on 2) for full backwards compatibility for apps already on ember > 4.5:
Level 1)Import { helper } & import { set } – ie. fully backwards compatible with all apps using the V1 addon Level 2)Plain function helper, still with import { set } – only compatible with ember >= 4.5, but with better glint support. Level 3) Plain function helper with normal assignment. – This works just fine as long as you have made sure to declare the variables in js before setting them from the template. I.e. not always fully "business logic" backwards compatible (but delcaring variables in js is good practice, and anyways required in gts/gjs)
Using this addon means you don't need to use
@tracked
. But tracked is the preferred thing to use these days.Can this addon be updated to use normal assignment instead?
(I understand it probably uses ember set behind the scenes just because that processes deep paths, but you could get that from lodash.set for example)
The text was updated successfully, but these errors were encountered: