prop-ype of searchableIndexes[] changed to to node#2530
prop-ype of searchableIndexes[] changed to to node#2530MikeTaylor wants to merge 2 commits intomainfrom
Conversation
When this is provided as `<FormattedMessage>`, a prop-types warning is emitted on the console even though this works just fine. We should get rid of the false-positive complaint.
Bigtest Unit Test Results 1 files ±0 1 suites ±0 25s ⏱️ -1s For more details on these failures, see this check. Results for commit c400e77. ± Comparison against base commit abb58d5. This pull request removes 1623 and adds 1623 tests. Note that renamed tests count towards both.This pull request removes 8 skipped tests and adds 8 skipped tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
zburke
left a comment
There was a problem hiding this comment.
string is the wrong thing for the <FormattedMessage> reason you identified, but I think the right thing is node. Moving to any just trades the prop-types warning for a lint warning since lint does not like any.
That said, lint is totally hosed in this repo, and I'm fine accepting this as a bug-fix even if it's questionable as an improvement. So, ultimately, your call.
|
But a string is acceptable, so I don't think Happy to hear @JohnC-80's thoughts. |
|
I stand by
in the code, though documentation says those array entries should match perpetuating the same error you're correcting here. |
|
Ooo, |
|



When this is provided as
<FormattedMessage>, a prop-types warning is emitted on the console even though this works just fine. We should get rid of the false-positive complaint.