Is it okay to not call unsubscribe inside useForm(inertiajs/svelte)? #1474
Unanswered
mt-u
asked this question in
Help (Svelte)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
While reading the source code of
useForm
forsvelte
, I came across a question.subscribe()
is called inuseForm.js
butunsubscribe()
is not.Doesn't this cause problems?
inertia/packages/svelte/src/useForm.js
Lines 190 to 205 in fe35815
On the other hand,
remember.js
calls both of them.inertia/packages/svelte/src/remember.js
Lines 8 to 12 in fe35815
Beta Was this translation helpful? Give feedback.
All reactions