Skip to content

Conversation

@tassoevan
Copy link
Contributor

Proposed changes

One of the dependencies of an effect on SettingsBasedStep is a callback continuously updated by the own effect, which resets the whole form state. Its PR fixes that by making the callback stable, i.e., not changing at every update.

Issue(s)

Closes #18060

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Hotfix (a major bugfix that has to be merged asap)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Changelog

Further comments

@tassoevan tassoevan added type: bug area: ui Touches the code on client side labels Jun 29, 2020
@tassoevan tassoevan requested review from a team, rodrigok and sampaiodiego June 29, 2020 21:45
@ggazzo ggazzo changed the title [FIX] Infinite render loop on Setup Wizard Regression: Infinite render loop on Setup Wizard Jun 29, 2020
@ggazzo ggazzo added this to the 3.4.0 milestone Jun 29, 2020
@ggazzo ggazzo merged commit fa32fea into develop Jun 29, 2020
@ggazzo ggazzo deleted the fix/infinite-effect-loop branch June 29, 2020 23:06
gabriellsh added a commit that referenced this pull request Jun 30, 2020
…ocket.Chat into new/rewrite_account_profile

* 'new/account_sidebar_rewrite' of github.com:RocketChat/Rocket.Chat:
  Fix sidenav close
  Regresion: Issue with reply button on broadcast channels (#18057)
  Regression: Infinite render loop on Setup Wizard (#18074)
  Regression: Improve Omnichannel Business Hours (#18050)
  Regression: Fix threads badge color indicators (#18048)
  Regression: Improve the logic to get request IPs (#18033)
@sampaiodiego sampaiodiego mentioned this pull request Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Touches the code on client side type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Component client/views/setupWizard/steps/SettingsBasedStep.js re-renders indefinite times

4 participants