-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
// 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>>; |
There was a problem hiding this comment.
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)
035dfcc
to
fefdb64
Compare
fefdb64
to
e58f1a6
Compare
// 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>>; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
e58f1a6
to
b4ba860
Compare
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.
b4ba860
to
cdabd9e
Compare
No description provided.