devagr
Should I use reconcile everytime I use produce?
yes if your reducer returns an immutable value for the next state,
reconcile
is your best bet.
it would be nice if your reducers can just mutate the current state into the next state instead of an immutable update, then you get to avoid the reconciliation. but if not, this is perfectly fine5 replies
<Show> not tracking signals
When you do
<Show>{expression}</Show>
, the expression is considered a reactive expression by the compiler.
When you do <Show>{() => something}</Show>
, this is not a reactive expression, just a callback to render the UI once. To track a signal, it has to run inside a reactive expression, which is why you need to wrap it in a fragment <>{counter().amount}</>
so that the signal is read reactively28 replies
TTCTheo's Typesafe Cult
•Created by theo (t3.gg) on 4/16/2023 in #questions
Mapped Types Not Inferring From Promise Correctly
same question
162 replies
TTCTheo's Typesafe Cult
•Created by theo (t3.gg) on 4/16/2023 in #questions
Mapped Types Not Inferring From Promise Correctly
so it's done? chatgpt got the right solution?
162 replies
TTCTheo's Typesafe Cult
•Created by mid on 4/11/2023 in #questions
useSession must be wrapped in a <SessionProvider />
don't make him go to everyone's DMs
16 replies
TTCTheo's Typesafe Cult
•Created by mid on 4/11/2023 in #questions
useSession must be wrapped in a <SessionProvider />
bruh
16 replies
TTCTheo's Typesafe Cult
•Created by mid on 4/11/2023 in #questions
useSession must be wrapped in a <SessionProvider />
be considerate of not being kicked
16 replies
TTCTheo's Typesafe Cult
•Created by mid on 4/11/2023 in #questions
useSession must be wrapped in a <SessionProvider />
what
16 replies
TTCTheo's Typesafe Cult
•Created by devagr on 2/27/2023 in #questions
Nextjs with CSS in JS
if I can't figure out SSR with ant I'll probably just move to tailwind
7 replies
TTCTheo's Typesafe Cult
•Created by devagr on 2/27/2023 in #questions
Nextjs with CSS in JS
I'm kinda stuck on ant since we also used their figma library to build our designs
7 replies
TTCTheo's Typesafe Cult
•Created by devagr on 2/11/2023 in #questions
middleware does not run on index page
nvm... added another matcher "/" in the array and it works
3 replies
TTCTheo's Typesafe Cult
•Created by devagr on 2/11/2023 in #questions
middleware does not run on index page
also ct3a does not come with middleware?
3 replies
TTCTheo's Typesafe Cult
•Created by devagr on 11/11/2022 in #questions
wtf prisma errors
welp, atleast the issue is gone
12 replies
TTCTheo's Typesafe Cult
•Created by devagr on 11/11/2022 in #questions
wtf prisma errors
okay migration helped but it deleted all the data from my database lmao
12 replies