Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove isRequired from optional prop #1843

Merged
merged 1 commit into from
Apr 15, 2017
Merged

Remove isRequired from optional prop #1843

merged 1 commit into from
Apr 15, 2017

Conversation

henrycatalinismith
Copy link
Contributor

@henrycatalinismith henrycatalinismith commented Apr 15, 2017

A children propType was recently added to the <Permalink /> component, and tagged as isRequired. However, the <Notification /> component does not pass any children when it renders a permalink. So if you have > 0 notifications, you get this warning in the console on page load.

Warning: Failed prop type: The prop `children` is marked as required in `Permalink`, but its value is `undefined`.
  in Permalink (created by Notification)

screen shot 2017-04-15 at 14 34 13

@Gargron Gargron merged commit 9d2f55e into mastodon:master Apr 15, 2017
@henrycatalinismith henrycatalinismith deleted the permalink-warning branch April 15, 2017 14:45
Nyoho pushed a commit to Nyoho/mathtodon that referenced this pull request Apr 25, 2017
tribela pushed a commit to tribela/mastodon that referenced this pull request Sep 9, 2022
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Jul 6, 2023
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.

None yet

2 participants