()
| 92 | } |
| 93 | |
| 94 | const TargetSessionRoute = () => { |
| 95 | const params = useParams<{ serverKey: string; id: string }>() |
| 96 | const global = useGlobal() |
| 97 | const conn = createMemo(() => { |
| 98 | const key = requireServerKey(params.serverKey) |
| 99 | return global.servers.list().find((item) => ServerConnection.key(item) === key) |
| 100 | }) |
| 101 | |
| 102 | return ( |
| 103 | <Show when={requireServerKey(params.serverKey)} keyed> |
| 104 | <ServerSDKProvider server={conn}> |
| 105 | <ServerSyncProvider server={conn}> |
| 106 | <TargetSessionRouteContent /> |
| 107 | </ServerSyncProvider> |
| 108 | </ServerSDKProvider> |
| 109 | </Show> |
| 110 | ) |
| 111 | } |
| 112 | |
| 113 | // Wraps the non-draft routes. They are gated on (and keyed to) the globally selected |
| 114 | // server via ServerKey, then provide the server-scoped shell (Permission/Layout/ |
nothing calls this directly
no test coverage detected