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

formValues: add decorator #3011

Merged
merged 2 commits into from
Jun 7, 2017
Merged

formValues: add decorator #3011

merged 2 commits into from
Jun 7, 2017

Conversation

wmertens
Copy link
Contributor

@wmertens wmertens commented Jun 4, 2017

You can either use formValues(path1, path2, ...) or formValues({prop1: path1, prop2: path2, ...}) to get values from the current form as props.

Implements #2996

@codecov-io
Copy link

codecov-io commented Jun 4, 2017

Codecov Report

Merging #3011 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3011   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          67      68    +1     
  Lines        1410    1433   +23     
======================================
+ Hits         1410    1433   +23
Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️
src/immutable.js 100% <ø> (ø) ⬆️
src/createFormValues.js 100% <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 5d8a246...a073ece. Read the comment docs.

@wmertens
Copy link
Contributor Author

wmertens commented Jun 4, 2017

Updated with more tests.

@erikras
Copy link
Member

erikras commented Jun 6, 2017

Looks good. Can you write the docs for this?

@@ -0,0 +1,4 @@
import createValues from '../createValues'
Copy link
Member

Choose a reason for hiding this comment

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

Should this not be '../createFormValues'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wow! How do the tests even pass? 😕

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes the tests create their own. Not ideal…

@wmertens
Copy link
Contributor Author

wmertens commented Jun 6, 2017

Where do I go for writing docs?

You can either use `formValues(path1, path2, ...)` or `formValues({prop1: path1, prop2: path2, ...})` to get values from the current form as props.
@wmertens
Copy link
Contributor Author

wmertens commented Jun 6, 2017

@erikras Alright, it's now testing the actually created formValues, and docs are added.

@erikras erikras merged commit ade4b4b into redux-form:master Jun 7, 2017
@wmertens wmertens deleted the formValues branch June 7, 2017 17:35
@erikras
Copy link
Member

erikras commented Jun 9, 2017

Published in v6.8.0.

@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
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