Repository navigation
chore: ads - #294
chore: ads#294avivkeller wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Findings
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5cd1b78a-f794-4324-98b3-4b4bfa1a1b83
Files selected for processing: 8-
components/CarbonAd/SideBar.jsxcomponents/CarbonAd/TopBar.jsxcomponents/CarbonAd/index.module.csscomponents/NavBar.jsxcomponents/SideBar.jsxeslint.config.mjshooks/useCarbonAd.mjsscripts/html/doc-kit.config.mjs
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
-
| const ref = useRef(null); | ||
|
|
||
| useEffect(() => { | ||
| if (media && !window.matchMedia(media).matches) return; |
There was a problem hiding this comment.
Track media query changes.
This condition runs only when zone or media changes. If the page loads below 56rem, SideBarAd does not fetch after the viewport becomes wide. If the page loads wide, it can retain the ad after the viewport becomes narrow. Subscribe to the MediaQueryList change event, and make the fetch lifecycle depend on its current match state.
⚡ Lighthouse reportAudited the Vercel preview deployment: https://webpack-doc-qdp1gwi15-openjs.vercel.app
|
bjohansebas
left a comment
There was a problem hiding this comment.
I’m blocking it since it can’t be merged yet.
Summary by CodeRabbit