react-waterfall
react-waterfall copied to clipboard
redux-devtools return no store found - 4.0.0-beta.4
Hi I passed the example code to react native and works wonderful but redux-devtools doesn't work.
On the documentation you said During development redux-devtools are automatically enabled. Install the extension. what's mean automatically enabled? maybe I missed something...
Here is my code:
store.js
import createStore from 'react-waterfall'
const config = {
initialState: { count: 0 },
actionsCreators: {
increment: ({ count }) => ({ count: count + 1 }),
},
}
export const { Provider, connect, actions } = createStore(config)
App.js
import React from 'react';
import {Button, Text, View} from 'react-native';
import { connect, Provider, actions } from './store'
let Count = ({ count }) => <Text style={{marginTop: 100}}>{count}</Text>
Count = connect(({ count }) => ({ count }))(Count)
export default class App extends React.PureComponent {
render() {
return (
<Provider>
<Count/>
<Button title='add' onPress={() => actions.increment()}/>
</Provider>
);
}
}
Thanks!
You're using react-native, we probably need to update the current version to add the ability to communicate through react-native.
thank you so much. It will be awesome!!

BTW, I tried with this library https://github.com/zalmoxisus/remote-redux-devtools but I thing that the way you handle createStore is different... in theory could be
import createStore from 'react-waterfall'
import devToolsEnhancer from "remote-redux-devtools";
const config = {
initialState: { count: 0 },
actionsCreators: {
increment: ({ count }) => ({ count: count + 1 }),
}
}
export const { Provider, connect, actions } = createStore(config, devToolsEnhancer())
but it doesn't works :( Any idea how to handle that ?
We use directly the redux-devtools API https://github.com/didierfranc/react-waterfall/blob/master/src/helpers/devtools.js
It's not available this way with react-native
That’s mean I will never could integrate with react native? The v3 works with a few middleware but those middleware doesn’t work with v4 neither 😩
Yes it will be I just have to find time to do it ;)
@didierfranc Thanks for the work :) Just wanted to ask if you'll be publishing the 4th version soon :) or are you done working on it?
Thank you , RN support is paramount
A v4 finale with react-native support seems perfect and will arrive soon ;)
@didierfranc wonder if you'll publish what you have :) thanks , waiting
I have the same requirement as @danllach regarding use of https://github.com/zalmoxisus/remote-redux-devtools, I didn't understand your later comment @didierfranc, will react-waterfall be able to make use of remote-redux-devtools in v4?