Re:Migrating from Vue 2 to Svelte
by Semaphor on Friday December 02, 2022 @02:48AM
(#33827956)
It… does. Now I wonder if this was not in 3 from the beginning, or if I simply always assumed this behavior was the same after upgrading from Vue2. Wow. Thanks.
Otherwise you also need to return it in the setup function (composition) or store a local copy of it in the data field (options)