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
after upgrading to version 9.0.1, toggling the locale does not seem to cause a re-computation in the getters of my glimmer components that use the moment service.
example component and corresponding template:
importComponentfrom'@glimmer/component';import{action}from'@ember/object';import{injectasservice}from'@ember/service';exportdefaultclassMyComponentextendsComponent{
@servicemoment;/** * the first day of the this week. * is locale dependent, e.g. with "en" locale that value would be "Sunday" * but with "es" locale it would be "lunes" (Monday) */getfirstDayOfWeek(){returnthis.moment.moment().startOf('week').format('dddd');}
@actionchangeLocale(){this.moment.setLocale('es');}}
i would expect that once i change the locale (invoking the changeLocale() action via a button click or the likes), that "lunes" would be returned from the getter, but it doesn't - it still gives me "Sunday".
this appears to be a regression, version 8 was working as expected.
The text was updated successfully, but these errors were encountered:
after upgrading to version 9.0.1, toggling the locale does not seem to cause a re-computation in the getters of my glimmer components that use the
moment
service.example component and corresponding template:
i would expect that once i change the locale (invoking the
changeLocale()
action via a button click or the likes), that "lunes" would be returned from the getter, but it doesn't - it still gives me "Sunday".this appears to be a regression, version 8 was working as expected.
The text was updated successfully, but these errors were encountered: