mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
feat: complete tankoepdia page
This commit is contained in:
1 parent
2b5ffb2b84
commit
a54ba78dbf
39 files changed
+790
-161
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { type RefObject, useLayoutEffect, useRef } from 'react';
|
||||
import { type RefObject, useEffect, useRef } from 'react';
|
||||
|
||||
interface UseIntersectionOptions extends IntersectionObserverInit {
|
||||
disabled: boolean;
|
||||
@@ -11,7 +11,7 @@ export function useIntersection(
|
||||
) {
|
||||
const observer = useRef<IntersectionObserver>();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
useEffect(() => {
|
||||
if (options?.disabled || !ref.current) return;
|
||||
|
||||
const rect = ref.current.getBoundingClientRect();
|
||||
|
||||
Reference in new issue
Block a user