@informedai/react 0.4.1 → 0.4.2
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -267,7 +267,7 @@ function InformedAIProvider({ config, children }) {
|
|
|
267
267
|
const initRef = (0, import_react.useRef)(false);
|
|
268
268
|
const heartbeatIntervalRef = (0, import_react.useRef)(null);
|
|
269
269
|
const sessionIdRef = (0, import_react.useRef)(null);
|
|
270
|
-
const shouldPersist = config.persistSession ??
|
|
270
|
+
const shouldPersist = config.persistSession ?? true;
|
|
271
271
|
const storageKey = getStorageKey(config.documentTypeId, config.externalId);
|
|
272
272
|
(0, import_react.useEffect)(() => {
|
|
273
273
|
clientRef.current = new InformedAIClient(config.apiUrl);
|
package/dist/index.mjs
CHANGED
|
@@ -237,7 +237,7 @@ function InformedAIProvider({ config, children }) {
|
|
|
237
237
|
const initRef = useRef(false);
|
|
238
238
|
const heartbeatIntervalRef = useRef(null);
|
|
239
239
|
const sessionIdRef = useRef(null);
|
|
240
|
-
const shouldPersist = config.persistSession ??
|
|
240
|
+
const shouldPersist = config.persistSession ?? true;
|
|
241
241
|
const storageKey = getStorageKey(config.documentTypeId, config.externalId);
|
|
242
242
|
useEffect(() => {
|
|
243
243
|
clientRef.current = new InformedAIClient(config.apiUrl);
|