Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix state update warning on wallet page - Closes #4029 #4030

Merged

Conversation

eniolam1000752
Copy link
Contributor

What was the problem?

#4029

How was it solved?

It was solved by moving the showWarning function call from within the return statement in overview/index.js to a useEffect

How was it tested?

  • Login on the lisk desktop application using the web
  • Visit the wallet page
  • On the browser's console, It would be observed that there is no Cannot update during an existing state transition (such as within 'render'). Render methods should be a pure function of props and state. warning thrown.

@eniolam1000752 eniolam1000752 self-assigned this Dec 31, 2021
@ManuGowda ManuGowda linked an issue Dec 31, 2021 that may be closed by this pull request
@eniolam1000752 eniolam1000752 changed the base branch from development to release/2.2.0 January 3, 2022 08:49
@ManuGowda ManuGowda removed the request for review from gadjacobs January 3, 2022 09:03
@ManuGowda ManuGowda removed the request for review from reyraa January 3, 2022 09:10
@ManuGowda ManuGowda merged commit 2a93672 into release/2.2.0 Jan 3, 2022
@ManuGowda ManuGowda deleted the 4029-wallet-page-throws-a-state-update-warning branch January 3, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet page throws a state update warning
2 participants