@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.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1502,7 +1502,7 @@ function AomiRuntimeCore({
|
|
|
1502
1502
|
const eventContext = useEventContext();
|
|
1503
1503
|
const notificationContext = useNotification();
|
|
1504
1504
|
const { user, onUserStateChange, getUserState } = useUser();
|
|
1505
|
-
const { getControlState, getCurrentThreadApp
|
|
1505
|
+
const { getControlState, getCurrentThreadApp } = useControl();
|
|
1506
1506
|
const sessionManagerRef = (0, import_react9.useRef)(null);
|
|
1507
1507
|
const walletHandler = useWalletHandler({
|
|
1508
1508
|
getSession: () => {
|
|
@@ -1706,9 +1706,8 @@ function AomiRuntimeCore({
|
|
|
1706
1706
|
(0, import_react9.useEffect)(() => {
|
|
1707
1707
|
return () => {
|
|
1708
1708
|
sessionManager.closeAll();
|
|
1709
|
-
void clearSecrets();
|
|
1710
1709
|
};
|
|
1711
|
-
}, [sessionManager
|
|
1710
|
+
}, [sessionManager]);
|
|
1712
1711
|
const userContext = useUser();
|
|
1713
1712
|
const sendMessage = (0, import_react9.useCallback)(
|
|
1714
1713
|
async (text) => {
|