@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.
@@ -10659,9 +10659,7 @@ function useChat(options) {
10659
10659
  abortControllerRef.current = null;
10660
10660
  }
10661
10661
  }, []);
10662
- const stopRef = (0, import_react.useRef)(stop);
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,
@@ -8745,9 +8745,7 @@ function useChat(options) {
8745
8745
  abortControllerRef.current = null;
8746
8746
  }
8747
8747
  }, []);
8748
- const stopRef = useRef(stop);
8749
- stopRef.current = stop;
8750
- useEffect(() => () => stopRef.current(), []);
8748
+ useEffect(() => stop, [stop]);
8751
8749
  const sendMessage = useCallback(
8752
8750
  async ({
8753
8751
  messages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anuma/sdk",
3
- "version": "6.31.4-next.20261007055054",
3
+ "version": "6.32.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",