devagr
devagr
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
JSX is
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
the show callback is not reactive
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
it's the same issue here, the the signal isn't accessed in a reactive scope
28 replies
SSolidJS
Created by anandreas on 10/23/2024 in #support
Modifying subsets of resources, not re-rendering
this should trigger the re-render as you expect
3 replies
SSolidJS
Created by anandreas on 10/23/2024 in #support
Modifying subsets of resources, not re-rendering
you'll have to make it an immutable update so that the object reference changes.
peopleActions.mutate((people) => {
people.map((p) => {
if (p.url == personToRemove.url) {
console.log(`deleting ${p.name}`);
return { ...p, deleted: true };
}
return p;
});
return people;
});
peopleActions.mutate((people) => {
people.map((p) => {
if (p.url == personToRemove.url) {
console.log(`deleting ${p.name}`);
return { ...p, deleted: true };
}
return p;
});
return people;
});
3 replies
SSolidJS
Created by swappea on 10/29/2024 in #support
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 fine
5 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
it's like if you read a signal inside a component body and return its value instead of reading the value inside jsx
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<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 reactively
28 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