We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying the async version and and getting the following error:
Uncaught TypeError: Cannot read property 'bind' of undefined at ./node_modules/core-js-pure/es/instance/bind.js.module.exports (bind.js:6)
Any suggestions?
`class TestComponent extends Component { constructor(props) { super(props); this.state = { repos: [] }; }
getItemsAsync(searchValue, cb) { let url = https://api.github.com/search/repositories?q=${searchValue}&language=javascript; fetch(url) .then(response => { return response.json(); }) .then(results => { if (results.items !== undefined) { let items = results.items.map((res, i) => { return { id: i, value: res.full_name }; }); this.setState({ repos: items }); cb(searchValue); } }); }
https://api.github.com/search/repositories?q=${searchValue}&language=javascript
render() { return (
export default TestComponent;`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying the async version and and getting the following error:
Uncaught TypeError: Cannot read property 'bind' of undefined
at ./node_modules/core-js-pure/es/instance/bind.js.module.exports (bind.js:6)
Any suggestions?
`class TestComponent extends Component {
constructor(props) {
super(props);
this.state = { repos: [] };
}
getItemsAsync(searchValue, cb) {
let url =
https://api.github.com/search/repositories?q=${searchValue}&language=javascript
;fetch(url)
.then(response => {
return response.json();
})
.then(results => {
if (results.items !== undefined) {
let items = results.items.map((res, i) => {
return { id: i, value: res.full_name };
});
this.setState({ repos: items });
cb(searchValue);
}
});
}
render() {
return (
);
}
}
export default TestComponent;`
The text was updated successfully, but these errors were encountered: