Preact: redux-form

Created on 20 Sep 2017  路  5Comments  路  Source: preactjs/preact

Is there any way to make it working ?

question

Most helpful comment

Ran into the same issue with preact-redux. Using preact-cli, so reverted to relying on preact-compat and installed react-redux instead. Seems to be working!

    "preact": "^8.2.1",
    "preact-compat": "^3.17.0",
    "react-redux": "^5.0.6",
    "redux-form": "^7.2.0",

All 5 comments

Are you using preact-compat? redux-form uses String refs and a bunch of other deprecated things, it does not work with Preact unless you use compat.

Ran into the same issue with preact-redux. Using preact-cli, so reverted to relying on preact-compat and installed react-redux instead. Seems to be working!

    "preact": "^8.2.1",
    "preact-compat": "^3.17.0",
    "react-redux": "^5.0.6",
    "redux-form": "^7.2.0",

Makes sense - if redux-form is using react-redux, you'd have both libs in your bundle and they may not interoperate. Good find @larrybotha!

I gave up this idea and moved back to react after license changed to MIT

@developit haha, all credit goes to you - I'm just following your instructions: https://github.com/developit/preact/issues/554#issuecomment-281710414 :)

Good to know that it'd add both libs to the bundle - got some evaluating to do with other deps!

Was this page helpful?
0 / 5 - 0 ratings