@flytedan/flytebot-design-system 0.1.3 → 0.1.4

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
@@ -7656,8 +7656,11 @@ function useChatEngine(opts) {
7656
7656
  const serverCount = React33.useRef(0);
7657
7657
  const threadRef = React33.useRef(null);
7658
7658
  const mounted = React33.useRef(true);
7659
- React33.useEffect(() => () => {
7660
- mounted.current = false;
7659
+ React33.useEffect(() => {
7660
+ mounted.current = true;
7661
+ return () => {
7662
+ mounted.current = false;
7663
+ };
7661
7664
  }, []);
7662
7665
  const commit = (next) => {
7663
7666
  listRef.current = next;