Fixing warnings and moving biggest area compute in store
This commit is contained in:
parent
d3544e2d97
commit
d533894a74
11 changed files with 180 additions and 106 deletions
|
@ -1,7 +1,8 @@
|
|||
<script lang="ts">
|
||||
import Peer from "./Peer.svelte";
|
||||
import {layoutStore} from "../../Stores/LayoutStore";
|
||||
import {onDestroy} from "svelte";
|
||||
import {afterUpdate, onDestroy} from "svelte";
|
||||
import {biggestAvailableArrayStore} from "../../Stores/BiggestAvailableArrayStore";
|
||||
|
||||
let cssClass = 'one-col';
|
||||
|
||||
|
@ -21,6 +22,10 @@
|
|||
onDestroy(() => {
|
||||
unsubscribe();
|
||||
});
|
||||
|
||||
afterUpdate(() => {
|
||||
biggestAvailableArrayStore.recompute();
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="chat-mode {cssClass}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue