[ 
https://issues.apache.org/jira/browse/ARTEMIS-5641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18017443#comment-18017443
 ] 

Gašper Čefarin edited comment on ARTEMIS-5641 at 9/1/25 1:35 PM:
-----------------------------------------------------------------

Fixed the before mentioned behavior by using useRef and not changing state of 
the component for every change inside search bar.

The second commit also fixes https://issues.apache.org/jira/browse/ARTEMIS-5512.
There are some additional functions to keep the "clear" button as is.

p.s. I also learned about the onSearch property which could replace the 
"onKeyDown". The "downside" is that it adds a small arrow button, similarly to 
how the clear button is added.


was (Author: JIRAUSER307941):
Fixed the before mentioned behavior by using useRef and not changing state of 
the component for every change inside search bar.

The latest commit also fixes https://issues.apache.org/jira/browse/ARTEMIS-5512.
There are some additional functions to keep the "clear" button as is.

p.s. I also learned about the onSearch property which could replace the 
"onKeyDown". The "downside" is that it adds a small arrow button, similarly to 
how the clear button is added.

> Separate filters and search from the ArtemisTable component
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-5641
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5641
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: console-1.2.1
>            Reporter: Gašper Čefarin
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This ensures that clicking the drop down menus or writing into search bar 
> doesn't re-render the whole table, making the frontend feel sluggish when 
> viewing many items. The behavior was very noticeable when there were 100 
> items displayed, needing around 300ms of time to render on my PC.
> This PR fixes that behavior. Open to changes and suggestions as always ...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to