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

Add immutableProps to HOC propTypes, do not pass it to wrapped component #3913

Merged

Conversation

lgodziejewski
Copy link
Contributor

@lgodziejewski lgodziejewski commented Mar 14, 2018

immutableProps is described in the ReduxForm.md file, however it is not included in the Config type definition and is passed down to the wrapped component.

I think this is not intended, so I've excluded it from passing down. This is a minor change, so I haven't opened any issue

This is my first public PR ever, so please provide feedback if I have omitted some step (btw it seems the CONTRIBUTING.md file is outdated, as e.g. there is no format script in the package.json file.)

Maybe I should also add a test verifying if proper props are passed down to the WrappedComponent?

@codecov-io
Copy link

codecov-io commented Mar 14, 2018

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3913   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          70      70           
  Lines        1629    1629           
======================================
  Hits         1629    1629
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 90feba0...45166aa. Read the comment docs.

@erikras
Copy link
Member

erikras commented Mar 23, 2018

Perfect. Great work! Thanks!

@erikras erikras merged commit a2b67b7 into redux-form:master Mar 23, 2018
@lgodziejewski lgodziejewski deleted the do-not-pass-immutable-props-prop branch March 24, 2018 09:50
@lock
Copy link

lock bot commented Jun 1, 2018

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 Jun 1, 2018
@erikras
Copy link
Member

erikras commented Jun 12, 2018

Released in v7.4.0.

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