#3982·redux-form

Flow type checking fails in projects without redux as an explicit dependency

Author: benbelowCreated Apr 18, 2018Updated Oct 27, 2024
Labelsdiscussion

Bug report

What is the current behavior?

When running flow type checking on a project with redux-form as a dependency, we get an error from redux-form failing to import type { Dispatch } from 'redux'

What is the expected behavior?

Clients of redux-form should not need to also include redux as a dependency for flow typing to succeed for redux-form.

Other information

It seems like an unusual use case to want redux-form without redux, but from an ideological point of view it feels like as the redux-form library relies upon redux for types, it should be declared as a non-dev dependency