global-input-react
Advanced tools
Comparing version 4.3.9 to 4.3.10
@@ -34,3 +34,3 @@ "use strict"; | ||
const useGlobalInputApp = (config, canConnect = true) => { | ||
const useGlobalInputApp = (config, canConnect = true, configId = "") => { | ||
const [{ | ||
@@ -80,5 +80,6 @@ connectionCode, | ||
globalInput.startConnect(configRef.current, notify); | ||
} | ||
}, [canConnect]); //You don't need to memoize the input parameter of this hook. | ||
} // eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [canConnect, configId]); //You don't need to memoize the input parameter of this hook. | ||
const restart = (0, _react.useCallback)(config => { | ||
@@ -85,0 +86,0 @@ if (!attached.current) { |
import React from 'react'; | ||
import { InitData, FormField, FieldValue, Sender } from 'global-input-message'; | ||
export * from 'global-input-message'; | ||
export function useGlobalInputApp(config: ConfigData | (() => ConfigData), canConnect?: boolean): GlobalInputData; | ||
export function useGlobalInputApp(config: ConfigData | (() => ConfigData), canConnect?: boolean, configId?: any): GlobalInputData; | ||
export function getGlobalInputState(): GlobalInputState; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "global-input-react", | ||
"version": "4.3.9", | ||
"version": "4.3.10", | ||
"description": "global input react component", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
import * as globalInput from './globalinput'; | ||
import { useReducer, useRef, useEffect, useCallback } from "react"; | ||
export * from 'global-input-message'; | ||
export const useGlobalInputApp = (config, canConnect = true) => { | ||
export const useGlobalInputApp = (config, canConnect = true, configId = "") => { | ||
const [{ | ||
@@ -46,3 +46,4 @@ connectionCode, | ||
} | ||
}, [canConnect]); //You don't need to memoize the input parameter of this hook. | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [canConnect, configId]); //You don't need to memoize the input parameter of this hook. | ||
@@ -49,0 +50,0 @@ const restart = useCallback((config) => { |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1255010
37538
0