Closed
Bug 1507903
Opened 7 years ago
Closed 6 years ago
Stop using react-select v2
Categories
(Tree Management :: Treeherder: Frontend, enhancement, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: camd)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
It would be great to find an alternative to react-select (or else see if the older v1 is any better), since:
* it inserts inline CSS, which requires the use of an insecure CSP style-src
* it bloats the bundle size a fair amount (https://bundlephobia.com/result?p=react-select@2.1.1)
* it's one of the (admittedly many) packages that is blocking us using React strict mode (bug 1451174)
Both the bundle size and the CSP issue would be improved slightly if react-select stopped using the CSS-in-JS package `emotion`, which may possibly happen in a future version (though likely like a fair way out). Also, react-select v1 didn't use `emotion` so may fair better - though may also not be compatible with latest React (we'd need to check).
See:
https://github.com/JedWatson/react-select/issues/2917
https://github.com/JedWatson/react-select/issues/2706
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → cdawson
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 years ago
|
Priority: P2 → P3
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•