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

Use meta.validating instead of manually control state #3994

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

fiskus
Copy link
Member

@fiskus fiskus commented Jun 5, 2024

This fixes Warning: Cannot update a component ('PackageCreationForm') while rendering a different component ('ForwardRef(Field)'). To locate the bad setState() call inside 'ForwardRef(Field)', follow the stack trace as described in https://reactjs.org/link/setstate-in-render

Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 36.69%. Comparing base (b58a355) to head (4136cfe).

Files Patch % Lines
...app/containers/Bucket/PackageDialog/FilesInput.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3994    +/-   ##
========================================
  Coverage   36.68%   36.69%            
========================================
  Files         724      724            
  Lines       32254    32247     -7     
  Branches     4608     4769   +161     
========================================
  Hits        11833    11833            
+ Misses      19758    19252   -506     
- Partials      663     1162   +499     
Flag Coverage Δ
api-python 90.95% <ø> (ø)
catalog 10.71% <0.00%> (+<0.01%) ⬆️
lambda 87.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fiskus fiskus force-pushed the fix-re-render-component-during-validation branch from 586950c to 4136cfe Compare June 12, 2024 14:59
@fiskus fiskus requested a review from nl0 June 12, 2024 15:01
Copy link
Member

@nl0 nl0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@fiskus fiskus added this pull request to the merge queue Jun 13, 2024
Merged via the queue into master with commit 1c2b4e3 Jun 13, 2024
36 of 38 checks passed
@fiskus fiskus deleted the fix-re-render-component-during-validation branch June 13, 2024 08:24
nl0 added a commit that referenced this pull request Jun 17, 2024
* master:
  Skip bad latest tenacity release to fix CI (#4003)
  Bump debian from bullseye-20240513-slim to bullseye-20240612-slim in /lambdas/thumbnail (#4000)
  Use `meta.validating` instead of manually control state (#3994)
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.

2 participants