FE-720(Refractive): Fix SSR issues by delaying rendering until dimensions available#8724
FE-720(Refractive): Fix SSR issues by delaying rendering until dimensions available#8724kube wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
PR SummaryMedium Risk Overview Adds a patch changeset documenting the SSR fix. Reviewed by Cursor Bugbot for commit 4fb0bcb. Bugbot is set up for automated code reviews on this repo. Configure here. |
🤖 Augment PR SummarySummary: Fixes SSR/hydration issues in the Changes:
Technical Notes: This keeps the server render and the initial client render aligned (no filter output until dimensions exist), reducing SSR crashes (e.g., 🤖 Was this summary useful? React with 👍 or 👎 |
🌟 What is the purpose of this PR?
Fix
@hashintel/refractiveSSR crashes in Next.js by avoiding browser-only SVG filter rendering until the component has mounted on the client and its element dimensions are known.🔗 Related links
🔍 What does this change?
backdrop-filterURL until the corresponding filter exists.@hashintel/refractive.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🛡 What tests cover this?
yarn workspace @hashintel/refractive lint:tscyarn workspace @hashintel/refractive buildreact-dom/server❓ How to test this?
ImageData is not defined.