mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
add gist loading page
format code
This commit is contained in:
@ -13,7 +13,7 @@ const useInView = () => {
|
||||
observer.unobserve(ref.current);
|
||||
});
|
||||
},
|
||||
[]
|
||||
[],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -13,7 +13,7 @@ const useRouterLoading = () => {
|
||||
(url: string) => {
|
||||
url !== router.pathname ? setLoading(true) : setLoading(false);
|
||||
},
|
||||
[router.pathname]
|
||||
[router.pathname],
|
||||
);
|
||||
const handleComplete = useCallback(() => {
|
||||
setLoading(false);
|
||||
|
Reference in New Issue
Block a user