Ani
Ani
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
awesome!
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
Hey this is prob because you're using httpBatchStreamLink as your link in trpc, this won't work because the response is sent as soon as the request is received, and then the response body is streamed without the headers httpBatchLink seems to be a good link for my app so I just changed over to it https://trpc.io/docs/client/links
16 replies
TTCTheo's Typesafe Cult
Created by ScarfedG on 3/6/2025 in #questions
Creating a custom bot in T3
#t3-chat
6 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
it isn't intutive at all but I guess dynamic IO should fix that problem
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
you'd do something like that
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
const getData = unstable_cache(
async () => {
const usersData = await db.select().from(users);
return { users: usersData };
},
["users"],
{
revalidate: false,
tags: ["users"], // add this line here
},
);
const getData = unstable_cache(
async () => {
const usersData = await db.select().from(users);
return { users: usersData };
},
["users"],
{
revalidate: false,
tags: ["users"], // add this line here
},
);
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
because giving unstable cache a key isn't the same as tagging it
16 replies
BABetter Auth
Created by Ani on 2/24/2025 in #help
Issue in create-t3-turbo better-auth implementation
code:
import { createAuthClient } from "better-auth/react";
import { expoClient } from "@better-auth/expo/client";
import * as SecureStore from "expo-secure-store";

export const authClient = createAuthClient({
plugins: [
expoClient({
scheme: "expo",
storage: SecureStore,
}),
],
baseURL: "http://localhost:3000",
});

export const { signIn, signOut, useSession } = authClient;
import { createAuthClient } from "better-auth/react";
import { expoClient } from "@better-auth/expo/client";
import * as SecureStore from "expo-secure-store";

export const authClient = createAuthClient({
plugins: [
expoClient({
scheme: "expo",
storage: SecureStore,
}),
],
baseURL: "http://localhost:3000",
});

export const { signIn, signOut, useSession } = authClient;
5 replies
BABetter Auth
Created by Ani on 2/24/2025 in #help
Issue in create-t3-turbo better-auth implementation
error:
5 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
with and without turbopack
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
same on build and dev
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
i'm also router.refresh() ing and it doesn't work
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
what am i missing?
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
and also the page is showing a static icon even tho the page is clearly dynamic
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 12/2/2024 in #questions
Clarification NextJS Caching Revalidation
nextjs 15
16 replies
TTCTheo's Typesafe Cult
Created by Ani on 9/30/2024 in #questions
Open AI Billing me 3 Times for GPT Plus
I emailed their support and they said that I am unelible for a refund even tho I got tripple charged lol
4 replies
TTCTheo's Typesafe Cult
Created by Ani on 9/30/2024 in #questions
Open AI Billing me 3 Times for GPT Plus
like the actually charged my 60$ for a month
4 replies
TTCTheo's Typesafe Cult
Created by Ani on 7/8/2024 in #questions
Imports and exports not working turborepo
seemed to fix it
6 replies
TTCTheo's Typesafe Cult
Created by Ani on 7/8/2024 in #questions
Imports and exports not working turborepo
I pushed everyhting to a repo and completely reinstalled everything
6 replies
TTCTheo's Typesafe Cult
Created by Ani on 7/8/2024 in #questions
Imports and exports not working turborepo
I just gave up
6 replies