Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TableFilterFinalForm: support all final-form-props #81

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

Ben-Ho
Copy link
Contributor

@Ben-Ho Ben-Ho commented Jul 24, 2019

No description provided.

// call to render-children consists of ...rest, ...renderProps, __versions, see https://github.com/final-form/react-final-form/blob/master/src/ReactFinalForm.js#L195
// whereby ...rest is FormProps destructed with all Config attributes and FormProps specific attributes, see https://github.com/final-form/react-final-form/blob/master/src/ReactFinalForm.js#L42
// which left RenderableProps in ...rest. (click FormProps and check extends). But they are missing in FormRenderProps-Type
export type CorrectFormRenderProps<FormValues = AnyObject> = FormRenderProps<FormValues> & RenderableProps<FormRenderProps<FormValues>>;
Copy link
Member

Choose a reason for hiding this comment

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

👍

aber vielleicht fällt dir ein besserer name ein, weil no na ist er korrekt :)

und bitte die datei klein schreiben (ist ja keine komponente)

@Ben-Ho Ben-Ho force-pushed the forwardFinalFormChildRender branch from 035dfcc to fefdb64 Compare July 29, 2019 14:23
@Ben-Ho Ben-Ho changed the title FinalForm: implement childRender like done in final-form TableFilterFinalForm: support all final-form-props Jul 29, 2019
@Ben-Ho Ben-Ho force-pushed the forwardFinalFormChildRender branch from fefdb64 to e58f1a6 Compare July 29, 2019 14:24
@Ben-Ho Ben-Ho self-assigned this Jul 29, 2019
// call to render-children consists of ...rest, ...renderProps, __versions, see https://github.com/final-form/react-final-form/blob/master/src/ReactFinalForm.js#L195
// whereby ...rest is FormProps destructed with all Config attributes and FormProps specific attributes, see https://github.com/final-form/react-final-form/blob/master/src/ReactFinalForm.js#L42
// which left RenderableProps in ...rest. (click FormProps and check extends). But they are missing in FormRenderProps-Type
export type CorrectFormRenderProps<FormValues = AnyObject> = FormRenderProps<FormValues> & RenderableProps<FormRenderProps<FormValues>>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FormRenderProps are defined wrong in final-form-types package. this is a fix. (I'm going to create a pull-request in types)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I addressed this missing props in this pull-request: final-form/react-final-form#575
If my pull-request gets merged this type shouldn't be needed anymore.

@Ben-Ho Ben-Ho force-pushed the forwardFinalFormChildRender branch from e58f1a6 to b4ba860 Compare July 30, 2019 07:02
implement childRender like done in final-form to fully support mutators
and other features which require child-components
use onSubmit if set, but that won't be needed as you normally don't submit
filter-values.
@Ben-Ho Ben-Ho force-pushed the forwardFinalFormChildRender branch from b4ba860 to cdabd9e Compare July 30, 2019 07:06
@Ben-Ho Ben-Ho merged commit 34a60ca into master Aug 8, 2019
@Ben-Ho Ben-Ho deleted the forwardFinalFormChildRender branch August 8, 2019 07:16
@rabengraph rabengraph removed their request for review January 2, 2020 08:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants