mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-06 08:43:36 +02:00
Add note for other bug-finder LLMs about local message ID sub-millisecond collisions
This commit is contained in:
@@ -110,6 +110,10 @@ frontend/src/
|
||||
- `useRepeaterMode`: repeater login/command workflow
|
||||
- `useAirtimeTracking`: repeater airtime stats polling
|
||||
|
||||
### Local message IDs
|
||||
|
||||
`useRepeaterMode` and `useAirtimeTracking` each have a `createLocalMessage` that generates ephemeral (non-persisted) message IDs via `-Date.now()`. Both hooks write to the same `setMessages`, so a same-millisecond call would produce duplicate IDs. In practice this requires a repeater command response and an airtime poll to land in the exact same ms — staggeringly unlikely and cosmetic-only (React duplicate key warning). Not worth fixing.
|
||||
|
||||
### Initial load + realtime
|
||||
|
||||
- Initial data: REST fetches (`api.ts`) for config/settings/channels/contacts/unreads.
|
||||
|
||||
Reference in New Issue
Block a user