Official redux support#3675
Conversation
|
I have tried few option from #1642 and did not work. |
|
Hi, Here is an example of a super simple project with Redux |
|
Updated with example |
|
@DanielZlotin sorry if this is contained in some other discussion. Was there a technical reason we chose to explicitly provide a method to register components with redux instead of just having everyone figure this out with HOCs (or some other solution)? Our solution, albeit just starting, is just to have "withStore" HOC. |
|
Nothing wrong with doing your own HOCs. Just that lots of people had problems implementing it, so we added this as a "quality of life" feature. |
|
@DanielZlotin I'm getting this error: edit: It appears getDerivedStateFromProps is getting called before the constructor is initialized so prevState is undefined. Anyone else getting this error when using the new wrapper? |
|
@spencewine Did you managed to find a solution? I wonder if this error has something to do with the edit: |
|
@DanielZlotin Just wanted to provide some feedback on this. I recently overheard someone suggest the latest version of RNN only supports Redux. The implementation isn't limited to Redux and, for example, works fine with I think it may make more sense to have this be called |
|
Ah I knew this would happen 🤦 that's why I was reluctant to add this in the first place. |
|
Nah, it's a fantastic addition, it's just the naming that's is a bit more specific than it needs to be 😁 |
|
The store argument is kinda redux specific though.. Please open a separate issue with a better api suggestion and we'll deprecate the current api if needed. |
|
Does this work with new context api providers ? |
|
any step by step plz ? |
|
Here is a step by step tutorial of adding Redux: |

The people have spoken.
Usage example: