revojs 0.0.69 → 0.0.70
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -840,7 +840,7 @@ function provideRouterContext(scope, options) {
|
|
|
840
840
|
navigator.dispatchEvent(new AfterNavigateEvent());
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
if (isClient()) useEvent(scope, window, "popstate",
|
|
843
|
+
if (isClient()) useEvent(scope, window, "popstate", fetch$1);
|
|
844
844
|
scope.setContext(ROUTE_CONTEXT, { inputs: createState() });
|
|
845
845
|
scope.setContext(ROUTER_CONTEXT, {
|
|
846
846
|
options,
|
|
@@ -850,7 +850,7 @@ function provideRouterContext(scope, options) {
|
|
|
850
850
|
route
|
|
851
851
|
});
|
|
852
852
|
fetch$1();
|
|
853
|
-
useEvent(scope, navigator, "navigate",
|
|
853
|
+
useEvent(scope, navigator, "navigate", () => startViewTransition(fetch$1));
|
|
854
854
|
return useRouter(scope);
|
|
855
855
|
}
|
|
856
856
|
function useRouter(scope, context) {
|