Skip to content

Conversation

@Yeom-JinHo
Copy link
Contributor

closed #854 #848

Description

This PR focuses on fixing React warnings and hydration issues in the AnimatedGridPattern component.
It also addresses a render loop / maximum update depth issue caused by unstable effect dependencies.

Changes

  • Invalid DOM prop fix: Prevented repeatDelay from leaking into the root <svg> via ...props, removing the React warning.
  • Hydration stability: Avoided SSR/CSR attribute mismatches by deferring random square generation until client dimensions are known.
  • Effect stability + cleanup: Stabilized effect dependencies to prevent update loops and improved ResizeObserver cleanup with disconnect().

Motivation

  • Remove noisy React warnings (repeatDelay on DOM elements).
  • Prevent hydration mismatches caused by variable inputs (e.g. Math.random()).
  • Avoid runtime errors like Maximum update depth exceeded and make resize handling more robust.

Breaking Changes

  • None.

@vercel
Copy link

vercel bot commented Dec 28, 2025

@Yeom-JinHo is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@Yeom-JinHo
Copy link
Contributor Author

@dillionverma @itsarghyadas
Some files weren’t properly formatted, so I fixed them in #859 and opened a PR.
Before reviewing this PR, I’d appreciate it if you could review #859 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: animated-grid-pattern unusable

1 participant