React.StrictMode issue
See original GitHub issuedownshift
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:
- Created 5 years ago
- Comments:13 (5 by maintainers)
Top 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 >
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 Free
Top 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
@franklixuefei - I believe this issue was resolved with https://github.com/paypal/downshift/pull/423
@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