Skip to content

Commit 979f999

Browse files
authored
Chore: Use template literal to comply with Biome linter (TanStack#79)
Switched to template literals to comply with Biome linting rules. Fixes an issue where scaffold initialization would "fail" when selecting TanStack Query and tRPC with the Biome toolchain. <details> <summary>Output with this problem</summary> <img width="907" alt="image" src="https://github.com/user-attachments/assets/794eb0b4-a5bd-4fa6-ba07-e2ac5b11e08a" /> </details>
1 parent 4ff1a01 commit 979f999

File tree

1 file changed

+2
-2
lines changed
  • packages/cta-engine/templates/react/add-on/tanstack-query/assets/src/integrations/tanstack-query

1 file changed

+2
-2
lines changed

packages/cta-engine/templates/react/add-on/tanstack-query/assets/src/integrations/tanstack-query/root-provider.tsx.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getUrl() {
1313
if (typeof window !== "undefined") return "";
1414
return `http://localhost:${process.env.PORT ?? 3000}`;
1515
})();
16-
return base + "/api/trpc";
16+
return `${base}/api/trpc`;
1717
}
1818
1919
export const trpcClient = createTRPCClient<TRPCRouter>({
@@ -67,4 +67,4 @@ export function Provider({ children }: { children: React.ReactNode }) {
6767
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
6868
)
6969
}
70-
<% } %>
70+
<% } %>

0 commit comments

Comments
 (0)