Open Henry8192 opened 6 days ago
The changes in the SearchTabPanel
component focus on improving the management of the query string input. A new useRef
hook is introduced to hold the current query string value, enhancing the efficiency of input state handling. Modifications to the handleQueryInputChange
and handleQueryOptionsChange
functions ensure that the latest query string is utilized when options are modified, streamlining the query submission process.
File Path | Change Summary |
---|---|
src/components/CentralContainer/Sidebar/SidebarTabs/SearchTabPanel/index.tsx | Introduced useRef for managing query string input. Updated handleQueryInputChange and handleQueryOptionsChange functions to utilize queryStringRef . |
Objective | Addressed | Explanation |
---|---|---|
Log queries are restarted when "isCaseSensitive" / "isRegex" button is toggled. (#126) | ❌ | The change does not explicitly address the query restart issue when toggling options. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Fix #126. Also updates
package-locks.json
for vulnerable packages.Validation performed
Search "Abc" without enabling any of the query options. Enable "caseSensitive" button, that restarts the search.