|
|
@@ -1,4 +1,5 @@
|
|
|
<script>
|
|
|
+ import {untrack} from "svelte";
|
|
|
import {notify} from "$lib/notifier.svelte.js";
|
|
|
import {goto} from "$app/navigation";
|
|
|
|
|
|
@@ -12,8 +13,8 @@
|
|
|
visibility,
|
|
|
route
|
|
|
} = $props();
|
|
|
- let ingredients = $state(ingredientsProp);
|
|
|
- let steps = $state(stepsProp);
|
|
|
+ let ingredients = $state(untrack(()=>$state.snapshot(ingredientsProp)));
|
|
|
+ let steps = $state(untrack(()=>$state.snapshot(stepsProp)));
|
|
|
let quantity = $state();
|
|
|
let unit = $state("");
|
|
|
let ingredientName = $state("");
|