facebook / prop-types

Runtime type checking for React props and similar objects
MIT License
4.48k stars 358 forks source link

SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED #389

Closed luisgcoss closed 1 year ago

luisgcoss commented 1 year ago

Does somebody have notice this?. When you use a spread operator to see what the function in a custom Validator receives the fifth paramather says "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED" image image Will I be fired?

ljharb commented 1 year ago

Yes, it's been widely shared on the internet:L https://www.reddit.com/r/javascript/comments/3m6wyu/found_this_line_in_the_react_codebase_made_me/ it's quite old news.