Matt
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Matt on 7/10/2024 in #questions
Guidance on Client Refresh after Server Action
Definitely, I'm going to refactor this one after thinking about it more with your comments. Extremely helpful again
17 replies
TTCTheo's Typesafe Cult
•Created by Matt on 7/10/2024 in #questions
Guidance on Client Refresh after Server Action
Thanks for the tip. Another state and simple use of transitions solved it. Completely overlooked the transition side of it to begin with…
17 replies
TTCTheo's Typesafe Cult
•Created by Matt on 7/10/2024 in #questions
Guidance on Client Refresh after Server Action
Ha ok cool cool I’ll give it a go thanks!
17 replies
TTCTheo's Typesafe Cult
•Created by Matt on 7/10/2024 in #questions
Guidance on Client Refresh after Server Action
Awful at satire over the internet here… is this the same as “just one more lane bro” ha…
17 replies
TTCTheo's Typesafe Cult
•Created by Matt on 7/10/2024 in #questions
Guidance on Client Refresh after Server Action
The main idea is to get the TenantUrl and Secret Token to show without the rerender and I meant to put sheet for what's shown in the video... the drawer only shows on mobile
17 replies
DTDrizzle Team
•Created by Matt on 3/27/2024 in #help
Upsert Multiple Rows with Conflicts postgres
Seems like raw SQL does the trick - I'll keep noodling at a cleaner way to build the sql but hey it works.
13 replies
DTDrizzle Team
•Created by Matt on 3/27/2024 in #help
Upsert Multiple Rows with Conflicts postgres
No rush at all but thanks
13 replies
DTDrizzle Team
•Created by Matt on 3/27/2024 in #help
Upsert Multiple Rows with Conflicts postgres
Obviously, a simple for loop works but was wondering if I could do it all in one. Maybe just missing something.
13 replies
DTDrizzle Team
•Created by Matt on 3/27/2024 in #help
Upsert Multiple Rows with Conflicts postgres
Yeah, the guide above goes over that but you'll still overwrite cells in a row if it matches a conflict. Like below the row for user 1 would just be an update of the value1 column but the guide would cause columns value2 and value3 to be zero'd out.
13 replies
DTDrizzle Team
•Created by Matt on 3/27/2024 in #help
Upsert Multiple Rows with Conflicts postgres
I'm thinking I'll just need to iterate over the users since this is still having similar issues of just overwriting rows, which makes sense. The userValues can look like this
where userId 1 is an update and userId 2 is a new user being inserted. When I run do it like the guide all the other values in userId1 are overwritten with nothing when it should really just be updating value1. Might not be possible without a for loop or something but figured I'd ask one more to see if you have thoughts.
13 replies
DTDrizzle Team
•Created by Matt on 3/27/2024 in #help
Upsert Multiple Rows with Conflicts postgres
Oh, nice! That's exactly what I'm looking for. Thank you!
13 replies