File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 34
34
"test:backwards" : " npm i react@16.3.1 react-dom@16.3.1 && npm test" ,
35
35
"test:forwards" : " npm i react@next react-dom@next && npm test" ,
36
36
"test:latest" : " npm i react@latest react-dom@latest && npm test" ,
37
- "test:hook" : " npm i react@16.7.0-alpha.0 react-dom@16.7.0-alpha.0 && jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js" ,
37
+ "test:hook" : " npm i react@16.7.0-alpha.2 react-dom@16.7.0-alpha.2 && jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js" ,
38
38
"prepublishOnly" : " npm run lint && npm run test:compat && npm run test:hook && npm run build"
39
39
},
40
40
"dependencies" : {},
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const useAsync = (opts, init) => {
82
82
83
83
const unsupported = ( ) => {
84
84
throw new Error (
85
- "useAsync requires react@16.7.0 or later . Upgrade your React version or use the <Async> component instead."
85
+ "useAsync requires react@16.7.0-alpha . Upgrade your React version or use the <Async> component instead."
86
86
)
87
87
}
88
88
You can’t perform that action at this time.
0 commit comments