Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Recursively nested PropTypes API? #320

Closed
drolsen opened this issue Jul 9, 2020 · 1 comment
Closed

Recursively nested PropTypes API? #320

drolsen opened this issue Jul 9, 2020 · 1 comment
Labels

Comments

@drolsen
Copy link

drolsen commented Jul 9, 2020

I'm all for PropTypes, really helps keep me and my teams code all on the same page and agreed upon..

However, is this of anything to be concerned about?

image

I understand it could just be recursively instances of its self and nothing more.. but figured it couldn't hurt to ask what is going on here?

Using:
//unpkg.com/[email protected]/umd/react.development.js
//unpkg.com/[email protected]/prop-types.js

I almost wanna keep clicking to see if it ends..

@ljharb
Copy link
Contributor

ljharb commented Jul 9, 2020

It's not concerning; circular references are just fine, look at window.window.window ad infinitum :-)

Indeed, I see that this is intentionally added in #20.

@ljharb ljharb closed this as completed Jul 9, 2020
@ljharb ljharb added the question label Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants