@myun/gimi-chat 0.8.4 → 0.8.5

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.
@@ -293,7 +293,9 @@ var MessageList = function MessageList(_ref) {
293
293
  minHeight: '100%'
294
294
  }
295
295
  }, visibleChatList.map(function (v, index) {
296
- return renderItem(index, v);
296
+ return /*#__PURE__*/React.createElement(React.Fragment, {
297
+ key: v.id || index
298
+ }, renderItem(index, v));
297
299
  })), /*#__PURE__*/React.createElement("div", {
298
300
  className: styles.answerLoading,
299
301
  style: {
@@ -97,10 +97,12 @@ var ReasoningContent = function ReasoningContent(_ref) {
97
97
  useEffect(function () {
98
98
  throttledScrollToBottom();
99
99
  }, [item.reasoningContent]);
100
+ var prevStatusRef = useRef(item.reasoningStatus);
100
101
  useEffect(function () {
101
- if (item.reasoningStatus === 2) {
102
+ if (prevStatusRef.current !== 2 && item.reasoningStatus === 2) {
102
103
  updataChatList(item.id, false);
103
104
  }
105
+ prevStatusRef.current = item.reasoningStatus;
104
106
  }, [item.reasoningStatus]);
105
107
  var renderStatusText = function renderStatusText() {
106
108
  switch (item.reasoningStatus) {