Automattic / studio

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.
https://developer.wordpress.com/studio/
GNU General Public License v2.0
172 stars 17 forks source link

Studio: Fix input render on typing #242

Closed kozer closed 3 months ago

kozer commented 3 months ago

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

  1. Navigate to AI assistant tab, and write something in the input
  2. Ensure that the input typing is not sluggish, compared to trunk

Pre-merge Checklist