You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspected to get some compile time errors, if I forget a required proptype
Webstorm does give me an error, but not eslint. Not sure if this a configuration problem or an eslint problem, but would be cool if this was a compile time error (even if you don't use flow etc.)
The text was updated successfully, but these errors were encountered:
PropTypes is a runtime validation by design. I don't know what WebStorm does but it's probably hardcoding all possible options which doesn't seem like a great way going forward.
We do suggest using Flow for this. Did you have a chance to give it a try?
Yeah, I love flow. Ironically, Webstorm doesn't support flow that well.
But okay, I kind of thought that this propTypes syntax was designed so that editors and linters can give helpful hints. But if that is not the case, then I'm just going to hope that better flow support will land in create-react-app 👯 (and Webstorm)
I suspected to get some compile time errors, if I forget a required proptype
Webstorm does give me an error, but not eslint. Not sure if this a configuration problem or an eslint problem, but would be cool if this was a compile time error (even if you don't use flow etc.)
The text was updated successfully, but these errors were encountered: