winit icon indicating copy to clipboard operation
winit copied to clipboard

Custom Element incompatibility

Open VincentJousse opened this issue 2 months ago • 1 comments

Description

I have a Web Custom Element which embeds an Event Loop.

If I use more than once my Custom Element in a web page, I get an error (RecreationAttempt) due to the fact that only one Event Loop can be created per browser tab. Can this limitation be retired ?

Tested browsers

Firefox, Chrome

Tested devices

DELL XPS 13

Winit version

0.30

VincentJousse avatar Oct 17 '25 14:10 VincentJousse

The related code is: https://github.com/rust-windowing/winit/blob/1e7ab0cd259b1352d3a79342f6d77bab5830609f/winit-web/src/event_loop/mod.rs#L30-L33

MarcAntoine-Arnaud avatar Oct 23 '25 09:10 MarcAntoine-Arnaud