question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Issue - this.updater.enqueueCallback is not a function

See original GitHub issue

Describe 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

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Bounceycommented, May 27, 2018

@LBWright @rajatkantinandi @Ildarik A fix has been deployed for this issue, can you please confirm that these challenges now work as expected? Many thanks

0reactions
LBWrightcommented, May 27, 2018

Confirmed! Thanks, you’re a magician @Bouncey

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found