Store Logo

We use cookies to enhance your experience, including saving your wishlist. Do you accept cookies?

1 item

Bags

Everything I need is clear except three real decisions. Two are mine to design, but one is a hard dependency I can't resolve alone:

The blocker: pnpm generate introspects a live Vendure API (codegen-shop.ts points at VITE_VENDURE_API_URL), and my notes say the remote dev API blocks introspection — it needs a local backend on :3000. There's a subtlety that makes this dangerous to get wrong: Collection.description is String! in the committed schema, and the loader casts to the full Collection type, so collection.description typechecks fine even if I never regenerate — it would just silently be undefined at runtime. Tests would pass too, since they build loaderData from fixtures. So this can't be verified by typecheck or tests alone.

Worth noting: description is String!, not nullable — so "not set" arrives as an empty string, and the guard has to be a trimmed-empty check, not a null check.

Subscribe & Save

Subscribe & Save in Bags

Set it and forget it — get these on a recurring schedule at a fixed price, and never run out.