Skip to content

🩹(frontend) avoid waiting room requests without room id#1259

Open
merahul22 wants to merge 3 commits intosuitenumerique:mainfrom
merahul22:frontend-waiting-room-fix
Open

🩹(frontend) avoid waiting room requests without room id#1259
merahul22 wants to merge 3 commits intosuitenumerique:mainfrom
merahul22:frontend-waiting-room-fix

Conversation

@merahul22
Copy link
Copy Markdown

Guard waiting room API calls until room data is available.

Purpose

The waiting room flow could build API requests before the room data was loaded by falling back to an empty string for roomId. This could lead to malformed requests such as /rooms//waiting-participants/ or /rooms//enter/, and made the loading state harder to reason about.

Proposal

Stop using an empty string fallback for the room id, only enable the waiting room query when a real room id is available, and fail fast in waiting room API helpers when the room id is missing.

  • remove the empty string fallback from the waiting room hook
  • only enable waiting room polling when roomId is available
  • guard waiting room API helpers against missing roomId
  • add a changelog entry for the fix

rahul-rupyy and others added 3 commits April 9, 2026 22:17
Use canonical documentation routes and add a regression test.
Guard waiting room API calls until room data is available.
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants