Add state to src and data in Stream component

This commit is contained in:
Leon Grünewald 2024-10-20 01:35:37 +02:00
parent 43e2e48baa
commit f050b15767

View file

@ -1,8 +1,8 @@
<script> <script>
let {stream, type} = $props(); let {stream, type} = $props();
let src; let src = $state(null);
let data; let data = $state(null);
switch (type) { switch (type) {
case "twitch": case "twitch":