Skip to content

Conversation

rvsia
Copy link
Contributor

@rvsia rvsia commented Sep 1, 2020

closes #771

@rvsia rvsia added the State manager Form state manager packages. Will be used a state management package for the form renderer. label Sep 1, 2020
@rvsia rvsia requested a review from Hyperkid123 September 1, 2020 07:28
@codecov
Copy link

codecov bot commented Sep 1, 2020

Codecov Report

Merging #775 into state-manager will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##           state-manager     #775      +/-   ##
=================================================
+ Coverage          93.17%   93.19%   +0.01%     
=================================================
  Files                223      224       +1     
  Lines               3809     3819      +10     
  Branches            1189     1194       +5     
=================================================
+ Hits                3549     3559      +10     
  Misses               260      260              
Impacted Files Coverage Δ
packages/form-state-manager/src/files/use-field.ts 98.63% <100.00%> (ø)
...ages/form-state-manager/src/utils/convert-value.ts 100.00% <100.00%> (ø)

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 7c7d0f0...971f5c6. Read the comment docs.

@rvsia rvsia force-pushed the convertInitialValue branch from 48547a9 to 4083573 Compare September 1, 2020 08:45
import convertType from './convert-type';
import { DataType } from '../types/data-types';

const convertValue = (value: any, dataType: DataType): any => {
Copy link
Member

Choose a reason for hiding this comment

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

This should only return a type specified in the dataTypes constant. Not any.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With arrays and objects.. it's basically any. :D But I changed that.

@rvsia rvsia force-pushed the convertInitialValue branch from 073853b to 971f5c6 Compare September 2, 2020 08:13
@Hyperkid123 Hyperkid123 merged commit 67f2338 into data-driven-forms:state-manager Sep 2, 2020
@rvsia rvsia deleted the convertInitialValue branch October 7, 2020 09:40
@Hyperkid123
Copy link
Member

🎉 This PR is included in version 3.1.0 🎉

The release is available on

Demo can be found here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released State manager Form state manager packages. Will be used a state management package for the form renderer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants