dconroy
TTCTheo's Typesafe Cult
•Created by dconroy on 7/1/2023 in #questions
Chirp: the trpc call to get all posts, hits the database every re-render....
Thanks, that would explain the refetch on window focus, but...for example I have a page that grabs data and presents it in a table, Theres a button on the page to open a modal to add a new record, but just the act of opening the modal(setting a state variable) causes the query to hit planetscale again. I have no doubt planetscale can handle it, even on the hobby plan, but overall, it just seems an inefficient and wastefully traffic heavy pattern...
7 replies
TTCTheo's Typesafe Cult
•Created by dconroy on 5/5/2023 in #questions
t3 tutorial- chirp project...vercel build fails.
Yes, the above link was the solution. Thanks @bostonsheraff . @ACwolf just add experimental: {
appDir: false,
},
to the bottom of your next.config.mjs file
6 replies