While helping @katinthehatsite today with her PR, I noticed the app was slow.
Digging more, I found that the problem was initiated after the user typed anything in the input.
This caused unnecessary rerenders to the message component that rendered all messages again and again
Testing Instructions
Navigate to AI assistant tab, and write something in the input
Ensure that the input typing is not sluggish, compared to trunk
Pre-merge Checklist
[ ] Have you checked for TypeScript, React or other console errors?
Related to https://github.com/Automattic/dotcom-forge/issues/7526
Proposed Changes
While helping @katinthehatsite today with her PR, I noticed the app was slow. Digging more, I found that the problem was initiated after the user typed anything in the input. This caused unnecessary rerenders to the message component that rendered all messages again and again
Testing Instructions
Pre-merge Checklist