|
@@ -11,6 +11,7 @@ import { server } from "@/utils/client";
|
|
|
import clsx from "clsx";
|
|
|
import { useLocale } from "next-intl";
|
|
|
import Image from "next/image";
|
|
|
+import Router from "next/router";
|
|
|
import React, { FC, PropsWithChildren, useEffect, useMemo, useRef, useState } from "react";
|
|
|
import styles from "./style.module.scss";
|
|
|
|
|
@@ -96,6 +97,16 @@ const Sidebar: FC<PropsWithChildren<Props>> = (props) => {
|
|
|
})
|
|
|
);
|
|
|
|
|
|
+ React.useEffect(() => {
|
|
|
+ Router.events.on("routeChangeComplete", () => {
|
|
|
+ console.log(99990);
|
|
|
+ });
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ Router.events.emit("routeChangeComplete");
|
|
|
+ }, 10000);
|
|
|
+ }, []);
|
|
|
+
|
|
|
React.useEffect(() => {
|
|
|
if (!providers || providers.length === 0) {
|
|
|
getGames().then((res) => {
|