@aomi-labs/react 0.3.7 → 0.3.8

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 CHANGED
@@ -1490,7 +1490,7 @@ function AomiRuntimeCore({
1490
1490
  const eventContext = useEventContext();
1491
1491
  const notificationContext = useNotification();
1492
1492
  const { user, onUserStateChange, getUserState } = useUser();
1493
- const { getControlState, getCurrentThreadApp, clearSecrets } = useControl();
1493
+ const { getControlState, getCurrentThreadApp } = useControl();
1494
1494
  const sessionManagerRef = useRef7(null);
1495
1495
  const walletHandler = useWalletHandler({
1496
1496
  getSession: () => {
@@ -1694,9 +1694,8 @@ function AomiRuntimeCore({
1694
1694
  useEffect3(() => {
1695
1695
  return () => {
1696
1696
  sessionManager.closeAll();
1697
- void clearSecrets();
1698
1697
  };
1699
- }, [sessionManager, clearSecrets]);
1698
+ }, [sessionManager]);
1700
1699
  const userContext = useUser();
1701
1700
  const sendMessage = useCallback7(
1702
1701
  async (text) => {