@saasquatch/component-environment 1.0.4 → 1.0.5-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -459,10 +459,8 @@ var userContextListenerForLocale = new import_dom_context2.ContextListener({
459
459
  if (next) {
460
460
  debug5("User context changed, refetching locale");
461
461
  const locale = await fetchLocale();
462
- if (localeProvider.context !== locale) {
463
- debug5(`New value fetched from GraphQL [${locale}]`);
464
- newLocale = locale || defaultLocale;
465
- }
462
+ debug5(`New value fetched from GraphQL [${locale}]`);
463
+ newLocale = locale || defaultLocale;
466
464
  } else {
467
465
  newLocale = defaultLocale;
468
466
  }
package/dist/index.mjs CHANGED
@@ -410,10 +410,8 @@ var userContextListenerForLocale = new ContextListener({
410
410
  if (next) {
411
411
  debug5("User context changed, refetching locale");
412
412
  const locale = await fetchLocale();
413
- if (localeProvider.context !== locale) {
414
- debug5(`New value fetched from GraphQL [${locale}]`);
415
- newLocale = locale || defaultLocale;
416
- }
413
+ debug5(`New value fetched from GraphQL [${locale}]`);
414
+ newLocale = locale || defaultLocale;
417
415
  } else {
418
416
  newLocale = defaultLocale;
419
417
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasquatch/component-environment",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-0",
4
4
  "description": "Environment and contexts for SaaSquatch components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",