Dari
Dari
Explore posts from servers
TTCTheo's Typesafe Cult
Created by traches on 10/20/2023 in #questions
Drizzle & Planetscale data migration workflow
the --custom flag worked for me. But how do you call drizzle's provided migrator function appropriately? Because im getting an ERR_UNKNOWN_FILE_EXTENSION error
7 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Thank you very much
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
and it's just typescript complaining
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
you are absolutely right with ? it worked
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
never mind sorry
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
but it leads to a runtime error
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
no i didn't destruct it
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Not working, because ids cant be undefined / null
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
yup
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Im still running into an issue, tho:
trpc.example.someQuery.useQuery({
ids: firstQuery.data!.ids // data is undefined ! didn't work
}, {
enabled: !!firstQuery.data?.ids
});
trpc.example.someQuery.useQuery({
ids: firstQuery.data!.ids // data is undefined ! didn't work
}, {
enabled: !!firstQuery.data?.ids
});
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 3/22/2023 in #questions
How to chain useQuery calls? | Use result from one query as input for another?
Of course, but in my specific case i am mapping the first query with data that is only available client and i don't want it to be passed to the server
23 replies
TTCTheo's Typesafe Cult
Created by Dari on 1/9/2023 in #questions
How bad is revealing ids really?
alright, thank you
9 replies