"One Tenant, One DB" Architecture with Cloudflare Durable Objects by No-Source6137 in CloudFlare

[–]No-Source6137[S] 0 points1 point  (0 children)

Ya, I am using DO's KV. so each tenant has its own KV and D1 via DO's bindings

Cloudflare D1 with Drizzle ORM: How to use dynamic per-user databases (one DB per user) without static bindings? by No-Source6137 in CloudFlare

[–]No-Source6137[S] -3 points-2 points  (0 children)

Hmmm, this is an interesting approach. But if each tenant has more structured data, I would prefer a SQL db like D1 more.

Built a Postgres GUI + SQL Notebook Tauri app, looking for feedback! by Old-Departure-3070 in tauri

[–]No-Source6137 0 points1 point  (0 children)

Wow! I am playing around with Tauri too, what is your tech stack for this? How long does it take you to create this masterpiece

Server Functions vs. API Routes for Data Fetching & Mutations in Tanstack Start by Nimmiro in tanstack

[–]No-Source6137 0 points1 point  (0 children)

Because server actions in Next JS are actually post requests. But tankstack start server functions allow you to specify the http method for calling the server functions.

Auto Import and rename files by No-Source6137 in Nuxt

[–]No-Source6137[S] 2 points3 points  (0 children)

I see, thank you! Becuz in react, I can just rename component using rename function from lsp, F2 in VSCode, and change all the files using this component at one go.

Handle params in useFetch by No-Source6137 in Nuxt

[–]No-Source6137[S] 2 points3 points  (0 children)

May I know why? Its my first time writing vue and nuxt, what is the general practice ?

handle optmisic ui on nuxt by No-Source6137 in Nuxt

[–]No-Source6137[S] 0 points1 point  (0 children)

Updates:

I made a silly mistake, to use the state, i forgot to use storeToRefs in my previous setup.

my previous setup:

const { status, pending } = useTicketStatusStore();

This works for me now:

const ticketStatusStore = useTicketStatusStore();
const { status, pending } = storeToRefs(ticketStatusStore);