better plumbing for games frontend
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user