Zen
Zen
Explore posts from servers
TtRPC
Created by Zen on 5/10/2023 in #❓-help
Caching(?) previous data until query returns new data
when I update my useQuery inputs with new filters it instantly sets the data to undefined while the query isLoading. Is there a way to keep the previous data there until the new data returns from the server? Currently there's big flashes in the UI between applications of the filters, as my data length drops to effectively zero then bounced back up again when the new data loads
3 replies
DTDrizzle Team
Created by Zen on 5/7/2023 in #help
Replace on Insert
I can see that there is a .ignore() option added to insert, but is there an equivalent .replace() or someway to flag it in the code? I'm doing an insert many by passing through an array of values (e.g. await db.insert(ActivityTable).values(values);) which is effectively an over write of existing data as well as new data
10 replies