Skip to content

docs(image): Use hook inside of function component#40096

Merged
ijjk merged 4 commits intovercel:canaryfrom
Dueen:patch-1
Aug 30, 2022
Merged

docs(image): Use hook inside of function component#40096
ijjk merged 4 commits intovercel:canaryfrom
Dueen:patch-1

Conversation

@Dueen
Copy link
Copy Markdown
Contributor

@Dueen Dueen commented Aug 30, 2022

The example broke the Rules of Hooks by calling the hook outside of the function component.

styfle
styfle previously approved these changes Aug 30, 2022
ijjk
ijjk previously approved these changes Aug 30, 2022
Copy link
Copy Markdown
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@ijjk ijjk merged commit b760c8d into vercel:canary Aug 30, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants