confirmed SSR support with Remix

This commit is contained in:
dswbx
2024-11-25 19:59:46 +01:00
parent 1c94777317
commit eea76ebc28
15 changed files with 144 additions and 44 deletions

View File

@@ -13,9 +13,13 @@ import { queryClient } from "../ClientProvider";
export class AppQueryClient {
api: Api;
constructor(public baseUrl: string) {
constructor(
public baseUrl: string,
user?: object
) {
this.api = new Api({
host: baseUrl
host: baseUrl,
user
});
}