We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e95d7c commit db3b50fCopy full SHA for db3b50f
site/src/components/navigation/navigation-container.jsx
@@ -1,5 +1,9 @@
1
import { useState } from 'preact/hooks'
2
-import 'invokers-polyfill'
+import { apply, isSupported } from 'invokers-polyfill/fn'
3
+
4
+if (typeof window !== 'undefined') {
5
+ if (!isSupported()) apply()
6
+}
7
8
function NavigationContainer(props) {
9
const [isMenuOpen, setIsMenuOpen] = useState(false)
site/src/components/navigation/navigation.astro
@@ -58,7 +58,7 @@ const routesToNotPrefetch = ['/research/component-matrix']
58
}
59
</style>
60
61
-<NavigationContainer client:only>
+<NavigationContainer client:load>
62
<CommunityLinks className="mobile" />
63
64
<div class="wrapper">
0 commit comments