React Issue - this.updater.enqueueCallback is not a function
See original GitHub issueDescribe your problem and - if possible - how to reproduce it
in React - Render State in the User Interface
, there is a problem with the testing. The following appears in the test phase of the screen. It never reaches the last test.
// running test
this.updater.enqueueCallback is not a function
// tests completed
This is my code in the challenge
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
name: 'freeCodeCamp'
}
}
render() {
return (
<div>
{ /* change code below this line */ }
<h1>{this.state.name}</h1>
{ /* change code above this line */ }
</div>
);
}
};
Add a Link to the page with the problem
https://learn.freecodecamp.org/front-end-libraries/react/render-state-in-the-user-interface
Tell us about your browser and operating system
- Browser Name: Firefox
- Browser Version: Latest
- Operating System: Ubuntu 16.04
If possible, add a screenshot here
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
this.updater.enqueueCallback is not a function when using ...
The issue occurs when I am trying to use callback function for react-x-editable component. Uncaught TypeError: this.updater.enqueueCallback is ...
Read more >React setState callback not called for external (npm packaged ...
When I call setState from a component I packaged as an npm package, this is what is called: Component.prototype.setState = function ( ...
Read more >React Issue - this.updater.enqueueCallback is not a function -
in React - Render State in the User Interface , there is a problem with the testing. The following appears in the test...
Read more >Updater Functions in React's setState - Jan Hesters
I recently learned a little nugget about how functions in setState work. ... state in React based on previous state is using updater...
Read more >Async Nature Of setState() · React Bits
It's just a function that calls something behind the scenes - enqueueState or enqueueCallback on updater. In fact, here's setState taken directly from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@LBWright @rajatkantinandi @Ildarik A fix has been deployed for this issue, can you please confirm that these challenges now work as expected? Many thanks
Confirmed! Thanks, you’re a magician @Bouncey