@assistant-ui/react 0.5.58 → 0.5.59

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -774,7 +774,10 @@ var useSmooth = (state, smooth = false) => {
774
774
  const {
775
775
  part: { text }
776
776
  } = state;
777
- const id = useMessage((m) => m.message.id);
777
+ const id = useMessage({
778
+ optional: true,
779
+ selector: (m) => m.message.id
780
+ });
778
781
  const idRef = useRef(id);
779
782
  const [displayedText, setDisplayedText] = useState2(text);
780
783
  const smoothStatusStore = useSmoothStatusStore({ optional: true });