@anuma/sdk 6.31.4-next.20261007055054 → 6.32.0
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/react/index.cjs +1 -3
- package/dist/react/index.mjs +1 -3
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -10659,9 +10659,7 @@ function useChat(options) {
|
|
|
10659
10659
|
abortControllerRef.current = null;
|
|
10660
10660
|
}
|
|
10661
10661
|
}, []);
|
|
10662
|
-
|
|
10663
|
-
stopRef.current = stop;
|
|
10664
|
-
(0, import_react.useEffect)(() => () => stopRef.current(), []);
|
|
10662
|
+
(0, import_react.useEffect)(() => stop, [stop]);
|
|
10665
10663
|
const sendMessage = (0, import_react.useCallback)(
|
|
10666
10664
|
async ({
|
|
10667
10665
|
messages,
|
package/dist/react/index.mjs
CHANGED
|
@@ -8745,9 +8745,7 @@ function useChat(options) {
|
|
|
8745
8745
|
abortControllerRef.current = null;
|
|
8746
8746
|
}
|
|
8747
8747
|
}, []);
|
|
8748
|
-
|
|
8749
|
-
stopRef.current = stop;
|
|
8750
|
-
useEffect(() => () => stopRef.current(), []);
|
|
8748
|
+
useEffect(() => stop, [stop]);
|
|
8751
8749
|
const sendMessage = useCallback(
|
|
8752
8750
|
async ({
|
|
8753
8751
|
messages,
|