Fetch all tags in DOM fixtures
Dan Abramov committed
Aug 31, 2018 at 14:38 UTC
6ff062e048867645d1f761e23cc8ff62139ebf08
2 files changed
+4
-2
fixtures/dom/src/react-loader.js
+1
-1
@@ -45,7 +45,7 @@ export default function loadReact() {
45
46
if (version !== 'local') {
47
const {major, minor, prerelease} = semver(version);
48
- const [preReleaseStage, preReleaseVersion] = prerelease;
48
+ const [preReleaseStage] = prerelease;
49
// The file structure was updated in 16. This wasn't the case for alphas.
50
// Load the old module location for anything less than 16 RC
51
if (major >= 16 && !(minor === 0 && preReleaseStage === 'alpha')) {
fixtures/dom/src/tags.js
+3
-1
@@ -52,7 +52,9 @@ export default function getVersionTags() {
52
cachedTags = JSON.parse(cachedTags);
53
resolve(cachedTags);
54
} else {
55
- fetch('https://api.github.com/repos/facebook/react/tags', {mode: 'cors'})
55
+ fetch('https://api.github.com/repos/facebook/react/tags?per_page=1000', {
56
+ mode: 'cors',
57
+ })
58
.then(res => res.json())
59
.then(tags => {
60
// A message property indicates an error was sent from the API