Skip to content

fix DocsRating violating rules of hooks#4720

Merged
Simek merged 1 commit into
react:mainfrom
Simek:@simek/docsrating-hooks-fix
Aug 14, 2025
Merged

fix DocsRating violating rules of hooks#4720
Simek merged 1 commit into
react:mainfrom
Simek:@simek/docsrating-hooks-fix

Conversation

@Simek

@Simek Simek commented Aug 12, 2025

Copy link
Copy Markdown
Collaborator

Why

Spotted a warning about rules of hooks violation caused by DocsRating component.

Screenshot 2025-08-12 at 08 05 04

How

Move state variable declaration above first conditional rendering.

@netlify

netlify Bot commented Aug 12, 2025

Copy link
Copy Markdown

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 3e6cd02
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/689adac3e817b80008220434
😎 Deploy Preview https://deploy-preview-4720--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Simek Simek merged commit f5d4596 into react:main Aug 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants