mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-01 11:02:56 +02:00
Fix memoization on cracker panel
This commit is contained in:
@@ -128,8 +128,9 @@ export function CrackerPanel({
|
||||
}, [existingChannelKeys]);
|
||||
|
||||
// Filter packets to only undecrypted GROUP_TEXT
|
||||
const undecryptedGroupText = packets.filter(
|
||||
(p) => p.payload_type === 'GROUP_TEXT' && !p.decrypted
|
||||
const undecryptedGroupText = useMemo(
|
||||
() => packets.filter((p) => p.payload_type === 'GROUP_TEXT' && !p.decrypted),
|
||||
[packets]
|
||||
);
|
||||
|
||||
// Update queue when packets change (deduplicated by payload)
|
||||
|
||||
Reference in New Issue
Block a user