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.StrictMode issue

See original GitHub issue
  • downshift version: 1.31.2

Relevant code or config: https://codesandbox.io/s/9lrw4n774w

What you did: I have added React.StrictMode.

What happened: a TypeError stateToSet is not a function error is thrown.

Notice that it works fine without React.StrictMode. It’s potentially a React bug.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
drobannxcommented, May 29, 2018

@franklixuefei - I believe this issue was resolved with https://github.com/paypal/downshift/pull/423

2reactions
janhoogeveencommented, Apr 4, 2018

@kentcdodds I’ll take a stab at it!

Update: Here’s my WIP: I still have to test the fork to see if it solves the problem, and I need to increase code coverage.

https://github.com/paypal/downshift/pull/410

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strict Mode - React
StrictMode is a tool for highlighting potential problems in an application. Like Fragment , StrictMode does not render any visible UI.
Read more >
What is StrictMode in React? - Stack Overflow
StrictMode is a tool for highlighting potential problems in an application. Like Fragment, StrictMode does not render any visible UI ...
Read more >
Using strict mode in React 18: A guide to its new behaviors
React's strict mode warns the developers to either use a callback pattern or a more modern createRef API instead. Warnings about deprecated ......
Read more >
What is StrictMode in React ? - GeeksforGeeks
StrictMode is a React Developer Tool primarily used for highlighting possible problems in a web application.
Read more >
Bug: React.StrictMode render 2 #24746 - GitHub
Bug : React.StrictMode render 2 #24746 · Steps To Reproduce. download npx create-react-app my-app --template redux-typescript; npm start. Link to ...
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