We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6908903 commit 5cb3650Copy full SHA for 5cb3650
src/index.js
@@ -8,7 +8,7 @@ export const LiveChatLoaderContext = createContext()
8
export const LiveChatLoaderProvider = ({
9
providerKey,
10
provider,
11
- idlePeriod = 5000,
+ idlePeriod,
12
children
13
}) => {
14
const [state, setState] = useState(STATES.INITIAL)
@@ -38,6 +38,10 @@ export const LiveChatLoaderProvider = ({
38
)
39
}
40
41
+LiveChatLoaderProvider.defaultProps = {
42
+ idlePeriod: 5000
43
+}
44
+
45
export { default as useChat } from './hooks/useChat'
46
export { default as HelpScout } from './components/HelpScout'
47
export { default as Intercom } from './components/Intercom'
0 commit comments