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

Better Config typing #4468

Merged
merged 2 commits into from Aug 5, 2019
Merged

Conversation

asazernik
Copy link
Contributor

I'm working on putting less extraneous cruft into ReduxFormContext to avoid unnecessary re-renders. (These were causing bugs in my project.) Since this is a bit of a scary refactor, wanted to make sure (internal-use-only) Flow types were up to snuff first.

@codecov
Copy link

codecov bot commented May 26, 2019

Codecov Report

Merging #4468 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #4468   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          74      74           
  Lines        1694    1694           
======================================
  Hits         1694    1694
Impacted Files Coverage Δ
src/createReduxForm.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e49795d...2bf680d. Read the comment docs.

src/createReduxForm.js Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Jul 12, 2019

Codecov Report

Merging #4468 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4468   +/-   ##
=======================================
  Coverage   98.96%   98.96%           
=======================================
  Files          74       74           
  Lines        1743     1743           
=======================================
  Hits         1725     1725           
  Misses         18       18
Impacted Files Coverage Δ
src/createReduxForm.js 93.88% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04171fb...54f31c7. Read the comment docs.

@renatoagds
Copy link
Contributor

@asazernik do you have plans to work in the fix?

@renatoagds renatoagds added this to the v8.2.6 milestone Jul 30, 2019
@asazernik
Copy link
Contributor Author

Agh! Missed the previous comment. Replied inline.

… types

(I recommend viewing this change with word-oriented diff.)

Props was duplicating certain props specified in Config, mostly in order
to express different nullity of those props. Respecified this by
splitting up Config based on nullity rules. This changes some of the
typing in Props, because Config types have been kept up to date better.

While moving asyncValidate from Props to config, made it optional; we
were already checking for non-null, now Flow will enforce that.
@renatoagds renatoagds merged commit 34b7905 into redux-form:master Aug 5, 2019
@renatoagds
Copy link
Contributor

Published in v8.2.6.

@lock
Copy link

lock bot commented Sep 12, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 12, 2019
@asazernik asazernik deleted the better-config-typing branch September 14, 2019 01:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants