Skip to content

Commit 94bef6f

Browse files
committed
fix: check for fallback property
1 parent 8769932 commit 94bef6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/query/src/internal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export function create$(scope: typeof scopeFn) {
2828
return [...document.querySelectorAll(selector)];
2929
},
3030
ready(callback: () => MaybePromise<undefined | (() => void)>) {
31-
if (supportsViewTransitions && transitionEnabledOnThisPage()) {
31+
const fallback = document
32+
.querySelector('meta[name="astro-view-transitions-fallback"]')
33+
?.getAttribute("content");
34+
if (transitionEnabledOnThisPage() && fallback !== "none") {
3235
let cleanup: (() => void) | undefined;
3336

3437
document.addEventListener("astro:page-load", async () => {

0 commit comments

Comments
 (0)