Skip to content

Commit

Permalink
roar
Browse files Browse the repository at this point in the history
  • Loading branch information
stopachka committed Jan 16, 2025
1 parent 2e76985 commit 13cfe72
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions client/packages/react/src/InstantReactRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,15 @@ export function useTypingIndicator<
setActive(false);
}, [setActive]);

const ret = useMemo(() => {
return {
active,
setActive,
inputProps: { onKeyDown, onBlur },
};
}, [active, setActive, onKeyDown, onBlur]);
const inputProps = useMemo(() => {
return { onKeyDown, onBlur };
}, [onKeyDown, onBlur]);

return ret;
return {
active,
setActive,
inputProps,
};
}

// --------------
Expand Down

0 comments on commit 13cfe72

Please sign in to comment.