Lautaro_dapin
Lautaro_dapin
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 10/2/2023 in #questions
Database migrations
yep i have see the kysely migration cli with the prisma to kysely, it helps
9 replies
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 10/2/2023 in #questions
Database migrations
thats a agresive and unuseful answer ... thanks a lot for the help 🙂
9 replies
TTCTheo's Typesafe Cult
Created by piesell on 4/8/2023 in #questions
Using Google Cloud SQL with Prisma
did you manage to solve this? @piesell im havving a similar issue
2 replies
TTCTheo's Typesafe Cult
Created by alan on 6/27/2023 in #questions
t3 app in turborepo now throws 404 error when accessing root
why are you on port 3002? you dont have any config to change the next default port
7 replies
TTCTheo's Typesafe Cult
Created by camdressler on 6/27/2023 in #questions
env-nextjs error
show some codse
4 replies
TTCTheo's Typesafe Cult
Created by alan on 6/27/2023 in #questions
t3 app in turborepo now throws 404 error when accessing root
you should show some files for people to help next.config.js package.json turbo.json [tprc].tsx utils/api.ts
7 replies
TTCTheo's Typesafe Cult
Created by deforestor on 5/30/2023 in #questions
Conditional render, why can't it be done?
@deforestor then tell me if it works xD
15 replies
TTCTheo's Typesafe Cult
Created by deforestor on 5/30/2023 in #questions
Conditional render, why can't it be done?
yep
15 replies
TTCTheo's Typesafe Cult
Created by deforestor on 5/30/2023 in #questions
Conditional render, why can't it be done?
typescript wiith jsx is not smart enough what you could do is inside the Loader component instead of return children, force to be a function where you pass the data something like this
function Loader(props){
if (props.isLoading || !props.data) return <>Loading...</>

return children(props.data)
}

function Page(){
...
return(
<Loader isLoading={isLoading} data={data}>
{data=> (<>{JSON.stringify(data)}</>))
</Loader>
)
}
function Loader(props){
if (props.isLoading || !props.data) return <>Loading...</>

return children(props.data)
}

function Page(){
...
return(
<Loader isLoading={isLoading} data={data}>
{data=> (<>{JSON.stringify(data)}</>))
</Loader>
)
}
not tested but should work i think xD
15 replies
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 2/17/2023 in #questions
Middleware doesn't load the `server.mjs` variables
thanks @cje it was the old env version for the project I had the env folder with the schema server and client I removed it and coopy the new env.mjs into the /src folder and it work perfectly
9 replies
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 2/17/2023 in #questions
Middleware doesn't load the `server.mjs` variables
i create this project 2 weeks ago idk how much it changed
9 replies
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 2/17/2023 in #questions
Middleware doesn't load the `server.mjs` variables
i will try that,
9 replies
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 11/23/2022 in #questions
T3 Stacks requires internet?
@Pod not really, i just created a sqlite3 db (i wasn't using the auth plugin)
6 replies
TTCTheo's Typesafe Cult
Created by Lautaro_dapin on 11/23/2022 in #questions
T3 Stacks requires internet?
@Pod but I mean, when developing in localhost it needs internet connection?
6 replies