mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
SvelteKit, Next.js, SolidStart
This commit is contained in:
@@ -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. Here’s an example:
|
||||
<Tab value="SolidStart">
|
||||
In SolidStart, you can use the `query` function to cache data. Here’s 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">
|
||||
|
||||
Reference in New Issue
Block a user