diff --git a/ui/ssr-example/src/client/component/BlogGrid/index.tsx b/ui/ssr-example/src/client/component/BlogGrid/index.tsx index 075d8cce..a14d62e5 100644 --- a/ui/ssr-example/src/client/component/BlogGrid/index.tsx +++ b/ui/ssr-example/src/client/component/BlogGrid/index.tsx @@ -95,6 +95,7 @@ const _BlogGrid = ({ data, disableGridLayout = true }: { data: GetBlogListQuery[ ); } + console.log(data); return <_BlogGridWithGridLayout data={data} />; }; diff --git a/ui/ssr-example/src/client/hooks/useSize.ts b/ui/ssr-example/src/client/hooks/useSize.ts index 0e168ab2..00d166f2 100644 --- a/ui/ssr-example/src/client/hooks/useSize.ts +++ b/ui/ssr-example/src/client/hooks/useSize.ts @@ -52,7 +52,7 @@ export function useDomSize({ ref, cssSelector, deps }: { ref?: RefObject window.removeEventListener("resize", handleResize); } } - }, [ref, cssSelector, setRect, ...deps]); + }, [ref, cssSelector, setRect, ...(deps || [])]); return rect; }