0.5.20 • Published 2 years ago
@xfekit/remote-redux-devtools v0.5.20
Remote Redux DevTools WeChat (compatible with WeChat mini)
Use Redux DevTools remotely for React Native, hybrid, desktop, weapp and server side Redux apps.
Installation
npm install --save-dev @xfekit/remote-redux-devtools
Note: for Windows use
remote-redux-devtools@0.5.0
(newer versions will not work due to a Windows issue fixed inreact-native
).
Usage
const { composeWithDevTools } = require('@xfekit/remote-redux-devtools')
// It is best to provide a name for distinguishing when debugging on multiple platforms
const storeName = 'weapp store'
// platform 'weapp' | 'h5' | 'rn'
const platform = 'weapp'
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ = () => {
// Other options refer to https://github.com/zalmoxisus/remote-redux-devtools `Parameters`
return composeWithDevTools({ platform, name: storeName })
}