Skip to content

resolve ESLint build errors in Hero component - #7

Merged
PrinceAFelix merged 1 commit into
mainfrom
development
Jun 29, 2026
Merged

resolve ESLint build errors in Hero component#7
PrinceAFelix merged 1 commit into
mainfrom
development

Conversation

@PrinceAFelix

Copy link
Copy Markdown
Owner

Used useRef to store the context function (portfolioCtx.onScrollY) to stabilize its reference.

Satisfied ESLint exhaustive-deps warnings that were causing Vercel to fail the build.

Eliminated the "Maximum update depth exceeded" infinite re-render loop inside the useEffect.

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-portfolio Ready Ready Preview, Comment Jun 29, 2026 8:39pm

@PrinceAFelix
PrinceAFelix merged commit b9f1d07 into main Jun 29, 2026
3 checks passed
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.

1 participant