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 have searched the existing issues and my issue is unique
My issue appears in the command-line and not only in the text editor
Description Overview
Even though checkKeyMustBeforeSpread works correctly when we use it on statically defined elements, the error is missed for dynamically generated items.
// No Error, Incorrect behavior <div>{data.map(x=><div{...spread}key={x.id}/>)}</div>// Error detected, Expected behavior<div><div{...spread}key={1}/><div{...spread}key={2}/><div{...spread}key={3}/></div>
Expected Behavior
react/jsx-key should report an error when the checkKeyMustBeforeSpread option is enabled and the array of elements is generated dynamically.