SvelteKit, Next.js, SolidStart

This commit is contained in:
Anthony DePasquale
2025-04-12 21:17:34 +02:00
parent c8e078a714
commit 0e12a5cb7a
6 changed files with 11 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ Read more about [cookie caching](/docs/concepts/session-management#cookie-cache)
Here are examples of how you can do caching in different frameworks and environments:
<Tabs items={["NextJs", "Remix", "Solid Start", "React Query"]}>
<Tabs items={["Next.js", "Remix", "SolidStart", "React Query"]}>
<Tab value="NextJS">
Since Next v15, we can use the `"use cache"` directive to cache the response of a server function.
@@ -68,8 +68,8 @@ Here are examples of how you can do caching in different frameworks and environm
</Tab>
<Tab value="Solid Start">
In Solid Start, you can use the `query` function to cache data. Heres an example:
<Tab value="SolidStart">
In SolidStart, you can use the `query` function to cache data. Heres an example:
```tsx
const getUsers = query(
@@ -78,7 +78,7 @@ Here are examples of how you can do caching in different frameworks and environm
);
```
Learn more about Solid Start `query` function <Link href="https://docs.solidjs.com/solid-router/reference/data-apis/query">here</Link>.
Learn more about SolidStart `query` function <Link href="https://docs.solidjs.com/solid-router/reference/data-apis/query">here</Link>.
</Tab>
<Tab value="React Query">