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.

Quick Start doesn't produce working project

See original GitHub issue

What docs page needs to be fixed?

  • Section: Tutorials
  • Page: Redux Toolkit Quick Start

What is the problem?

Following the instructions on the page results in a non-functional project.

I’m using the React template on codesandbox.io and the quick start results in a project that errors out with state.counter is undefined in src/features/counter/Counter.js.

If I change the selector in Counter.js to work around the undefined member, I get this error in the console: “Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.” but the documentation says that combineReducers is called by configureStore for me, so I don’t have to.

The quick start source code also makes reference to a Counter.module.css file that is not created by following the tutorial.

The example code at the end is way more elaborated than the quick start, and it also appears to be outdated.

I’m brand new to Redux, so I don’t know what Redux wants from me at this point, and that’s quite off-putting.

What should be changed to fix the problem?

Fix the Quick Start so that someone who hasn’t seen Redux in their life can follow it and get it to work on first try.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
markeriksoncommented, May 12, 2022

No worries, glad this got sorted out!

FYI we’ve also got a #redux channel in the Reactiflux Discord ( https://www.reactiflux.com ), which is a great place to come by and ask questions.

0reactions
Uplink03commented, May 12, 2022

Well, damn. I thought I moved that file, and somehow it got copied, and I was editing and importing the wrong one without realising. I was just blind to which file was being opened and which one was imported, as in my mind I only had one: the one in ‘app’.

The part about Redux DevTools is something I invented while desperate to figure out what was going on. It didn’t help, but somehow, after I added it to the file (which wasn’t even used), DevTools started to work (it was blank before that), adding to the confusion.

Thanks for pointing out my mistake.

Now I can take a deep breath and move to the page you mentioned 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Fixed] Quick Start Not Working on iPhone 13/12/11/X/8/7
Part 1. 4 solutions to fix Quick Start not working · Solution 1. Check the software version of both iPhones · Solution 2....
Read more >
Solved: iPhone Quick Start Not Working [2022] - Dr.Fone
The problem with the quick start iPhone does not work because of the weak connection. There is also an option to use a...
Read more >
How to Fix iPhone Quick Start not Working Issue - iMobie
Ensure Both of Your iPhones Working on iOS 11 or Later​​ Head to Settings > General > Software Update and tap on Download...
Read more >
[Expert Guide] iPhone 14 Quick Start Not Working? Fast to Know
New iPhone quick start not working? Here we're going to give the detailed guide on how to solve iPhone quick start not working....
Read more >
If Logic Pro isn't working - Apple Support
If Logic Pro is open, quit the app. Open Logic Pro and create a new empty project. Add Apple Loops to the new...
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