* Only set the height on the message component if it ends up being greater than the maxHeight to avoid re-renders * Cache the teams theme to avoid unnecessary computation and re-renders * useDidUpdate instead of useEffect to avoid setting the theme preference without need * add comment on clear cache |
||
|---|---|---|
| .. | ||
| index.ts | ||
| message.tsx | ||
| show_more_button.tsx | ||