3 ms·
Will the codes.json [1] never reorder indicies? Looking at the gulpfile it seems they could as React changes? So maybe need a version system for codes.json.. No
by nthitz 10y ago
Will the codes.json [1] never reorder indicies? Looking at the gulpfile it seems they could as React changes? So maybe need a version system for codes.json.. Not sure; seems handy anyway.
[1] - https://github.com/facebook/react/blob/master/scripts/error-codes/codes.json https://github.com/facebook/react/blob/master/scripts/error-...
- Matthias247 10y agoYes to make that reliable the indices may never change and even if an error is no longer used it must still be in the map. Looking at the gulp script I would say it guarantees that, because it takes the old errorcode file as a starting point for generating a new one. Another requirement would be that the URL on the server also does not change, otherwise the links from older react version would be broken.