@lwrjs/router 0.8.11 → 0.8.13

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.
@@ -47,9 +47,11 @@ var Outlet = class extends import_lwc.LightningElement {
47
47
  this.hasError = false;
48
48
  }
49
49
  setView(currentView) {
50
- this.hasError = false;
51
- this.viewCtor = currentView;
52
- this.refocus();
50
+ setTimeout(() => {
51
+ this.hasError = false;
52
+ this.viewCtor = currentView;
53
+ this.refocus();
54
+ });
53
55
  }
54
56
  renderedCallback() {
55
57
  if (this.viewCtor !== this.previousViewCtor) {
@@ -15,9 +15,13 @@ export default class Outlet extends LightningElement {
15
15
  viewName: '$viewName'
16
16
  })
17
17
  setView(currentView) {
18
- this.hasError = false;
19
- this.viewCtor = currentView;
20
- this.refocus();
18
+ // Workaround for #1436
19
+ // Delays outlet update timing to workwaround non-deterministic timing
20
+ setTimeout(() => {
21
+ this.hasError = false;
22
+ this.viewCtor = currentView;
23
+ this.refocus();
24
+ });
21
25
  }
22
26
 
23
27
  renderedCallback() {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.8.11",
8
+ "version": "0.8.13",
9
9
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
10
10
  "repository": {
11
11
  "type": "git",
@@ -48,9 +48,9 @@
48
48
  "utam:compile": "utam -c utam.config.cjs -t module"
49
49
  },
50
50
  "dependencies": {
51
- "@lwrjs/client-modules": "0.8.11",
52
- "@lwrjs/diagnostics": "0.8.11",
53
- "@lwrjs/shared-utils": "0.8.11",
51
+ "@lwrjs/client-modules": "0.8.13",
52
+ "@lwrjs/diagnostics": "0.8.13",
53
+ "@lwrjs/shared-utils": "0.8.13",
54
54
  "ajv": "6.12.6"
55
55
  },
56
56
  "lwc": {
@@ -76,5 +76,5 @@
76
76
  "engines": {
77
77
  "node": ">=14.15.4 <19"
78
78
  },
79
- "gitHead": "84123df8ea70cc311e035c8919525394ac818b7b"
79
+ "gitHead": "a2db23cdbeff33e3ad0ab5a90517742480f780cd"
80
80
  }