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

fix: getValueProps should not be executed when name does not exist #666

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

madocto
Copy link
Contributor

@madocto madocto commented Mar 19, 2024

Copy link

vercel bot commented Mar 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
field-form ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2024 2:35am

<div>
<Form initialValues={{ test: 'bamboo' }}>
<Field getValueProps={getValueProps}>
<span className="anything" />
Copy link

@jongwong jongwong Mar 20, 2024

Choose a reason for hiding this comment

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

lack of case when children is a function.

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.43%. Comparing base (8268294) to head (4027246).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #666   +/-   ##
=======================================
  Coverage   99.43%   99.43%           
=======================================
  Files          18       18           
  Lines        1247     1247           
  Branches      288      308   +20     
=======================================
  Hits         1240     1240           
  Misses          7        7           

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

src/Field.tsx Outdated Show resolved Hide resolved
src/Field.tsx Outdated Show resolved Hide resolved
@madocto madocto requested a review from zombieJ March 28, 2024 02:35
@zombieJ zombieJ merged commit cde8248 into react-component:master Mar 28, 2024
9 checks passed
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.

3 participants