Description
While working on your suggestion to incorporate #132 into #127, I came across this bug. After confirming it happened in main
and not part of my own changes, I'm reporting it here.
If you run pnpm dev
from the packages\svelte-ux
directory and navigate to the SelectField
component's webpage, there are a few parts of the page that contain examples that include <Form>
usage. When submitting these forms, it now produces a regression in which the following uncaught TypeError is thrown and the UI for said preview example thenceforth freezes until you completely refresh the page to reset things. Not sure when exactly this began happening, but it wasn't an issue a month ago.
Uncaught TypeError: Cannot perform 'IsArray' on a proxy that has been revoked
at clone (<anonymous>:555:19)
at <anonymous>:555:57
at Array.map (<anonymous>)
at clone (<anonymous>:555:48)
at clone (<anonymous>:562:20)
at <anonymous>:555:57
at Array.map (<anonymous>)
at clone (<anonymous>:555:48)
at serializeNode (<anonymous>:656:31)
at Object.remove (<anonymous>:681:15)
Investigating the error, it appears to have something to do with the immer
library and the use of its data outside of the scope in which they are valid. I already tried replacing the use of draft
in the page's form examples with current
instead, but that didn't seem to resolve the issue.