@webqit/webflo 0.20.54 → 0.20.55
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/package.json
CHANGED
|
@@ -571,6 +571,9 @@ export class WebfloClient extends AppRuntime {
|
|
|
571
571
|
await synthesizeWhile(async () => {
|
|
572
572
|
Observer.set(this.transition, 'phase', 'old');
|
|
573
573
|
const viewTransition = document.startViewTransition({ update: updateCallback, types: ['navigation', viewTransitionRel] });
|
|
574
|
+
if (detail.navigationType) {
|
|
575
|
+
viewTransition.types.add(detail.navigationType);
|
|
576
|
+
}
|
|
574
577
|
try { await viewTransition.updateCallbackDone; } catch (e) { console.log(e); }
|
|
575
578
|
Observer.set(this.transition, 'phase', 'new');
|
|
576
579
|
try { await viewTransition.ready; } catch (e) { console.log(e); }
|
|
@@ -600,6 +600,10 @@ export class WebfloServer extends AppRuntime {
|
|
|
600
600
|
responseMeta.set('static', true);
|
|
601
601
|
responseMeta.set('index', scopeObj.index);
|
|
602
602
|
|
|
603
|
+
if (FLAGS['dev'] && httpEvent.url.pathname === '/@hmr') {
|
|
604
|
+
response.headers.set('Cache-Control', 'no-store');
|
|
605
|
+
}
|
|
606
|
+
|
|
603
607
|
return response;
|
|
604
608
|
};
|
|
605
609
|
|