BootesVoid
TTCTheo's Typesafe Cult
•Created by BootesVoid on 3/17/2024 in #questions
Property 'query' does not exist on type 'DecorateProcedure<QueryProcedure<
4 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 3/16/2024 in #questions
Error: ENOENT: no such file or directory, stat 'C:\components.json'
8 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 3/13/2024 in #questions
any button even when explicitly mentioned as type="button" triggers form submission
I'm using the Form component inside the dialog component by shadcn/ui
I have a button inside the form which is explicitly mentioned as type="button" but still triggers form submisson.
This is the button inside the form:
and this is the actual submit button:
6 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 3/6/2024 in #questions
what is Prisma.BatchPayload?
I'm trying to make an insertion into the trade table and then use the ids generated to connect those trades created in another table.
however I'm unable to as the return type from createMany is Prisma.BatchPayload
Can anyone help me achieve this without manually creating and assigning uuids
2 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 1/28/2024 in #questions
I have a standard data-table from shadcn
How do I limit the number of rows displayed in every pagination?
3 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 11/7/2023 in #questions
I get TRPCClientError: Unexpected token ; in JSON position 4
8 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 9/11/2023 in #questions
Clerk middleware public routes
I have an ecommerce website with the / route being public, and I'm fetching categories from a publicProcedure,
but it doesn't work if I'm not logged with clerk.
16 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 9/3/2023 in #questions
T3 App dir beta does not have react-query integrated
Does anyone have any idea how to integrate it to
create [email protected]
2 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 8/27/2023 in #questions
is there caching in tRPC
I am trying to fetch new data on state change,
const [categories, setCategories] = useState<categoryType[]>([]); // Initialize with an empty array
useEffect(() => {
const getCategories = async () => {
const categoriesRes = await api.category.getCategories.query()
console.log(categoriesRes); // Use categoriesRes instead of categories setCategories(categoriesRes); }
getCategories(); }, [isCategoryClosed, afterFetch, isCategoryOpened]); even though Im directly logging the response, I see the same categoriesRes being returned, but when the page is refreshed it works as expected by returning the newly added categories. Any idea why this is happening.
console.log(categoriesRes); // Use categoriesRes instead of categories setCategories(categoriesRes); }
getCategories(); }, [isCategoryClosed, afterFetch, isCategoryOpened]); even though Im directly logging the response, I see the same categoriesRes being returned, but when the page is refreshed it works as expected by returning the newly added categories. Any idea why this is happening.
10 replies
TTCTheo's Typesafe Cult
•Created by BootesVoid on 8/4/2023 in #questions
Chrome extensions causing hydration errors
Just found out that some chrome extensions are the reason for hydration errors, after hours of debugging. Does anyone have any idea if that will be a problem for users after deployment?
5 replies