@flowerforce/flower-react 3.0.1-beta.5 → 3.0.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -2
- package/dist/index.esm.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -159,10 +159,11 @@ const FlowerClient = ({
|
|
159
159
|
action: 'FLOWER_CLIENT_INIT',
|
160
160
|
name: flowName,
|
161
161
|
time: new Date(),
|
162
|
-
nodeId: isInitialized
|
162
|
+
nodeId: isInitialized,
|
163
|
+
getState: store.getState
|
163
164
|
});
|
164
165
|
}
|
165
|
-
}, [dispatch, flowName, wsDevtools, isInitialized]);
|
166
|
+
}, [dispatch, flowName, wsDevtools, isInitialized, store]);
|
166
167
|
React.useEffect(() => {
|
167
168
|
if (isInitialized && wsDevtools && global.window && _get(global.window, '__FLOWER_DEVTOOLS__')) {
|
168
169
|
flowerCore.Emitter.emit('flower-devtool-from-client', {
|
package/dist/index.esm.js
CHANGED
@@ -157,10 +157,11 @@ const FlowerClient = ({
|
|
157
157
|
action: 'FLOWER_CLIENT_INIT',
|
158
158
|
name: flowName,
|
159
159
|
time: new Date(),
|
160
|
-
nodeId: isInitialized
|
160
|
+
nodeId: isInitialized,
|
161
|
+
getState: store.getState
|
161
162
|
});
|
162
163
|
}
|
163
|
-
}, [dispatch, flowName, wsDevtools, isInitialized]);
|
164
|
+
}, [dispatch, flowName, wsDevtools, isInitialized, store]);
|
164
165
|
useEffect(() => {
|
165
166
|
if (isInitialized && wsDevtools && global.window && _get(global.window, '__FLOWER_DEVTOOLS__')) {
|
166
167
|
Emitter.emit('flower-devtool-from-client', {
|