Browse code

Refactor and rewrite as contao bundle

Benjamin Roth authored on04/11/2022 22:32:32
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-import { useEffect, useLayoutEffect } from 'react';
2
-
3
-function useIsomorphicLayoutEffect(callback, deps) {
4
-  // eslint-disable-next-line
5
-  if (typeof window === 'undefined') return useEffect(callback, deps);
6
-  return useLayoutEffect(callback, deps);
7
-}
8
-
9
-export { useIsomorphicLayoutEffect };
10 0
\ No newline at end of file
Browse code

swiper.js version 6.5.0

Benjamin Roth authored on14/03/2021 15:29:46
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+import { useEffect, useLayoutEffect } from 'react';
2
+
3
+function useIsomorphicLayoutEffect(callback, deps) {
4
+  // eslint-disable-next-line
5
+  if (typeof window === 'undefined') return useEffect(callback, deps);
6
+  return useLayoutEffect(callback, deps);
7
+}
8
+
9
+export { useIsomorphicLayoutEffect };
0 10
\ No newline at end of file