feat(app): improve desktop multi-server support (#30678)

Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
Luke Parker 2026-06-05 16:30:02 +10:00 committed by GitHub
commit 7f33576f46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
62 changed files with 1523 additions and 841 deletions

View file

@ -1,10 +1,11 @@
import { createContext, createMemo, Show, useContext, type ParentProps, type Accessor } from "solid-js"
export function createSimpleContext<T, Props extends Record<string, any>>(input: {
name: string
init: ((input: Props) => T) | (() => T)
gate?: boolean
}) {
export function createSimpleContext<T, Props extends Record<string, any>>(
input: {
name: string
init: ((input: Props) => T) | (() => T)
} & (T extends { ready: unknown } ? { gate: boolean } : { gate?: boolean }),
) {
const ctx = createContext<T>()
return {