element-hq / element-hq/element-call

Creating fresh room by visiting URL fails in dev mode

Open
#753 0 comments 0 reactions 0 assignees View on GitHub
O-Occasional S-Major T-Defect X-Regression
Dominant language
TypeScript
Stars
996
Forks
213
Avg merge
1d 8h
Merged PRs (30d)
55

Description

### Steps to reproduce

1. Get an element call in dev mode (eg. vite preview)
2. Open in web browser, suffixing url with a room that doesn't yet exist, eg. http://localhost:3000/somethingreallyuniquecabbage
3. Enter something fir display name when prompted

### Outcome

#### What did you expect?
The lobby

#### What happened instead?
Error saying room already exists

This will be a React 18 strict mode error as it will be trying to create the room on component mount and therefore doing it twice, which obviously fails the second time.

### Operating system

_No response_

### Browser information

_No response_

### URL for webapp

_No response_

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.