Gašper Čefarin created ARTEMIS-5511:
---------------------------------------
Summary: Improve rendering logic
Key: ARTEMIS-5511
URL: https://issues.apache.org/jira/browse/ARTEMIS-5511
Project: ActiveMQ Artemis
Issue Type: Improvement
Components: Web Console
Reporter: Gašper Čefarin
Came across this when trying to implement ARTEMIS-5424. The preferences for
page size seem to be ignored.
For every "tab" change: the ArtemisTable gets rendered 4 times (was testing
queues tab), and the data from jolokia is fetched 2 times.
After this PR, ArtemisTable is rendered 3 times "only" and the data is fetched
only once.
setPerPage does not seem to be necessary inside useEffect. I don't know yet
where that is called, but pagination still works after this PR.
The behavior is now slightly different when changing columns - the data does
not get fetched/updated automatically after this PR.
Would like to hear your opinions on this.
--
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