saasufy-components 7.13.0 → 7.14.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/app-router.js +6 -2
- package/package.json +1 -1
package/app-router.js
CHANGED
|
@@ -149,7 +149,11 @@ export class AppRouter extends SocketConsumer {
|
|
|
149
149
|
location.replace(cleanPagePath);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
refreshCurrentPage() {
|
|
153
|
+
this.renderCurrentPage(true);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
renderCurrentPage(force) {
|
|
153
157
|
let routerViewport = this.shadowRoot.querySelector('slot[name="viewport"]').assignedNodes()[0];
|
|
154
158
|
if (!routerViewport) return;
|
|
155
159
|
|
|
@@ -260,7 +264,7 @@ export class AppRouter extends SocketConsumer {
|
|
|
260
264
|
routeArgs
|
|
261
265
|
});
|
|
262
266
|
|
|
263
|
-
if (pageState === this.lastPageState) return;
|
|
267
|
+
if (pageState === this.lastPageState && !force) return;
|
|
264
268
|
|
|
265
269
|
this.lastPageState = pageState;
|
|
266
270
|
|