Cheaterman
Typescript and useFetch transform
I have fairly persistent issues with useFetch() and transform in typescript ; transform seems to expect the shape of the response not to change, which (at least for me) defeats the purpose
I already removed the generic argument to useAPI (which is just a useFetch wrapper) as mentioned in https://github.com/nuxt/nuxt/discussions/21248#discussioncomment-6165650
But the only way I can get typescript to somewhat cooperate is by writing
which is tedious and feels like it shouldn't be necessary
28 replies
Clearing UForm errors
I'd like to clear errors from (untouched) fields that had been previously manually set by form.setErrors() in Nuxt UI 2.
I tried :
None of that seems to actually clear the errors on all fields, only the one that is being (or was last) touched.
14 replies
Weird :key behavior
I'm having a SUPER WEIRD issue with
:key
- I get some fairly random ordering of items if I use :key="mything.id"
(id
is a PK straight from DB so very much unique) but it works with :key="index"
(in v-for="(mything, index) in mythings"
- mythings
being computed if that's relevant)1 replies