Open AnonSar opened 1 year ago
Hi, @AnonSar, thanks for the report. The code you shared does have a small bug - it should be
store.subscribe(incrementCount); // not incrementCount()
since subscribe expects to be passed a function.
That said, there are a few things going wrong in the client:
Ah I see, looks like I totally missed that bit, thanks for pointing that out @ojeytonwilliams ! Appreciate it 🙏 !
hey!!! @AnonSar Is the issue still open ????
Describe the Issue
When the user submits the correct solution for the Register a Store Listener module, then they end up with the following error message within the console:
Given that the user is submitting the correct solution ( since all the unit tests are getting passed and
// tests completed
is getting printed in the console ), then showing such an error message ( along with other messages ) to the user could make them feel a bit confused.Affected Page
https://www.freecodecamp.org/learn/front-end-development-libraries/redux/register-a-store-listener
Your code
Expected behavior
In order to avoid any sort of ambiguity and to keep things as clear as possible, I believe when the user submits their solution and if their submitted solution is entirely correct, then they should be getting the following messages only ( within the console ):
Screenshots
System