Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

proper way to add onChange event while keeping redux-forms/actions? #24

Closed
@rileylnapier

Description

@rileylnapier

adding a onChange handler to my input seems to remove the redux-forms/actions

how do you recommend having both? using middleware to intercept the action? use a thunk to dispatch the redux-forms/action from my onChange action?

or maybe a new function to pass into the component like "watchValue"?

thoughts?

im basically trying to call a api whenever my input field changes. i was using onBlur... but i would like a more instant feel so im using onChange with a debounce

something like this is what i did... which i guess works? but monkeypatching

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions