better plumbing for games frontend

This commit is contained in:
2025-09-04 23:48:49 -04:00
parent b3e040f03f
commit 9e3697ffef
7 changed files with 131 additions and 89 deletions

View File

@@ -1,9 +1,8 @@
import { createSignal, onMount, useContext } from "solid-js";
import { createObservableWithInit } from "~/fn";
import { playerColor } from "~/profile";
import { TableContext } from "./Table";
import { Stylable } from "./toolbox";
import { createObservable, createObservableWithInit } from "~/fn";
import { GameContext } from "./Game";
export default (props: { playerKey: string } & Stylable) => {
const table = useContext(TableContext);
@@ -14,8 +13,6 @@ export default (props: { playerKey: string } & Stylable) => {
.thru((Evt) => createObservableWithInit(Evt, false)) ??
createSignal(false)[0];
const game = useContext(GameContext);
onMount(() => console.log("Player mounted"));
return (