Skip to content

Commit

Permalink
restore useeffect
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Feb 11, 2025
1 parent df6af75 commit dbfdc40
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export const NextLogo = forwardRef(function NextLogo(
isDevBuilding || isDevRendering
)

useEffect(() => {
setIsErrorExpanded(hasError)
}, [hasError])

return (
<div
data-next-badge-root
Expand Down

0 comments on commit dbfdc40

Please sign in to comment.