stress test script update
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
if (isPrepending && scrollContainer && anchoredScrollHeight > 0) {
|
||||
const newScrollHeight = scrollContainer.scrollHeight;
|
||||
const heightDiff = newScrollHeight - anchoredScrollHeight;
|
||||
|
||||
|
||||
if (heightDiff > 0) {
|
||||
console.log(`[MessageList] Prepending detected, adjusting scroll by ${heightDiff}px`);
|
||||
scrollContainer.scrollTop = anchoredScrollTop + heightDiff;
|
||||
|
||||
@@ -57,10 +57,6 @@ const startStressTest = () => {
|
||||
: `Stress test message ${msgCount++} from client at ${new Date().toISOString()}`;
|
||||
|
||||
try {
|
||||
if (msgCount === 1) {
|
||||
console.log("Available reducers:", Object.keys(connection.reducers));
|
||||
}
|
||||
|
||||
// The bindings use camelCase sendMessage
|
||||
connection.reducers.sendMessage({
|
||||
text,
|
||||
|
||||
Reference in New Issue
Block a user