Skip to content

feat(listings): implement live reload for new listings using SSE#361

Open
RaminGe wants to merge 2 commits into
orangecoding:masterfrom
RaminGe:feature/live-reload
Open

feat(listings): implement live reload for new listings using SSE#361
RaminGe wants to merge 2 commits into
orangecoding:masterfrom
RaminGe:feature/live-reload

Conversation

@RaminGe

@RaminGe RaminGe commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This PR implements real-time silent live-reloading for the listings overview page.

Currently when new listings are fetched and stored by background/scheduled jobs, users on the Listings page do not see them unless they manually reload the page. This breaks the seamless real-time feel of the application.

Solution:
We leverage Fredys existing SSE architecture to silently reload the listings state in the background.

Backend:

  • Automatically dispatches a listings:new event through SSE to the user when new listings are added to the database

Frontend:

  • Subscribed to the /api/jobs/events SSE channel
  • Refetches the listings page silently when a listings:new event is received

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant