Skip to content

Commit 37879bd

Browse files
committed
refactor: add comment for event ordering in SandboxEventsView
- Added a comment to clarify that sandbox lifecycle events are derived in ascending timestamp order. - This change improves code readability and understanding of the event ordering logic.
1 parent a01c7cc commit 37879bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/features/dashboard/sandbox/events

src/features/dashboard/sandbox/events/view.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const SandboxEventsView = () => {
1616
const filteredEvents = type
1717
? lifecycleEvents.filter((event) => event.type === type)
1818
: lifecycleEvents
19+
// Sandbox lifecycle events are derived in ascending timestamp order.
1920
const orderedEvents = orderAsc
2021
? filteredEvents
2122
: [...filteredEvents].reverse()

0 commit comments

Comments
 (0)