Log bug against aws-amplify use of componentWillReceiveProps instead of getDerivedStateFromProps
See original GitHub issueDescribe the bug
In reference to aws-amplify-react-native/src/Auth/ConfirmSignUp.js
This react component still implements componentWillReceiveProps
whereas this has been deprecated since React 16.3. This class should be updated to use getDerivedStateFromProps
. This probably applies to all the Auth components.
To Reproduce Steps to reproduce the behavior:
- Implement an Auth workflow using AWS-Amplify
- When confirm sign up screen appears, the “username” field is blank
Expected behavior The username field should be pre-filled, because the user just signed up on the previous screen.
Actual behavior The field is blank.
Smartphone:
- Tested on iPhone 8
- iOS 12.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
Lifecycle method static getDerivedStateFromProps doesn't ...
It sends new props if I console.log it in my render method, but getDerivedStateFromProps shows the same values both in prevState and newProps....
Read more >shouldcomponentupdate react 17 Code Example - Code Grepper
react I want to make a request after the first render of a component is called, which life cycle should I use? willRecieveProps...
Read more >amplify-redux-auth - dist - index.es.js.map - UNPKG
1, {"version":3,"file":"index.es.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/fbjs/lib/shallowEqual.js",".
Read more >[Solved]-what is right way to do API call in react js?-Reactjs
In this case, you can do ajax call inside componentDidMount , and then update state export default class UserList extends React.
Read more >Beginner's Thread / Easy Questions (March 2020) : reactjs
I have a backend hosted on AWS and a frontend hosted on Heroku, ... to fix a bug that was caused by importing...
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 FreeTop 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
Top GitHub Comments
React Native + TypeScript + Jest I got a warning:
"react-native": "0.61.2",
, slightly different use case. The following warning is logging in metro bundler,