Loading web/src/hooks/useWindowShow.tsx 0 → 100644 +12 −0 Original line number Diff line number Diff line import { useState } from "react" export const useWindowShow = () => { const [isWindowActive, setIsWindowActive] = useState(false); const [renderCount, setRenderCount] = useState(0); const forceRenderList = () =>{ setRenderCount(prevCount => prevCount + 1); } return {isWindowActive, setIsWindowActive, forceRenderList, renderCount}; } No newline at end of file Loading
web/src/hooks/useWindowShow.tsx 0 → 100644 +12 −0 Original line number Diff line number Diff line import { useState } from "react" export const useWindowShow = () => { const [isWindowActive, setIsWindowActive] = useState(false); const [renderCount, setRenderCount] = useState(0); const forceRenderList = () =>{ setRenderCount(prevCount => prevCount + 1); } return {isWindowActive, setIsWindowActive, forceRenderList, renderCount}; } No newline at end of file