From c413e27768a5e7c6503012d9d2d90298ad021cce Mon Sep 17 00:00:00 2001 From: Piotr Oleszczyk Date: Fri, 27 Feb 2026 16:37:00 +0100 Subject: [PATCH] fix: suppress state_referenced_locally warnings in ProductForm Wrap all prop-derived $state initializers with untrack() to explicitly signal that one-time capture from the product prop is intentional. Co-Authored-By: Claude Sonnet 4.6 --- .../src/lib/components/ProductForm.svelte | 55 ++++++++++--------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/frontend/src/lib/components/ProductForm.svelte b/frontend/src/lib/components/ProductForm.svelte index ab17872..2967b50 100644 --- a/frontend/src/lib/components/ProductForm.svelte +++ b/frontend/src/lib/components/ProductForm.svelte @@ -1,4 +1,5 @@