Skip to content

Commit

Permalink
[Form] Rename state store variable from formStore() to not be con…
Browse files Browse the repository at this point in the history
…sidered a Svelte 5 $state rune
  • Loading branch information
techniq committed Jun 27, 2024
1 parent 58f3cf2 commit af725cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/svelte-ux/src/lib/components/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
const settingsClasses = getComponentClasses('Form');
const [state, draft, errors] = formStore(initial, { schema });
const [_state, draft, errors] = formStore(initial, { schema });
$: current = draft.current;
$: dispatch('change', $state);
$: dispatch('change', $_state);
</script>

<form
Expand All @@ -32,7 +32,7 @@
{...$$restProps}
>
<slot
state={$state}
state={$_state}
draft={$draft}
errors={$errors}
commit={draft.commit}
Expand Down

0 comments on commit af725cd

Please sign in to comment.