Eduardo San Martin Morote
Eduardo San Martin Morote
There should also be an equivalent for `defineMutation()`
I think a good version would be `defineQuery(() => { ...})` similar to a setup store. This looks like a composable and behaves like one except it's a singleton
This is partially done with https://pinia-colada.esm.dev/guide/queries.html#Reusable-Queries but it only mentions reusable queries while `defineQuery()` covers more than that as it can encapsulate more than than.
it is about instantiating the query. It doesn't have to be about navigation but it should integrate easily into that too. I'm not sure if a new API is needed...
I think the problem comes from the content-length header. The error happens before sending the request: ``` cause: RequestContentLengthMismatchError: Request body length does not match content-length header at AsyncWriter.write (node:internal/deps/undici/undici:10139:19)...
I get the same result with both node 18 and node 16 (latest patchs)
I don't have one anymore but should be reproducible (if still there) when trying to send images, something like https://vueuse.org/core/useFileDialog/#usefiledialog.
I think testing just the latest gen is fine
I see, to me, repeatable groups can only be between `/` e.g: `/:id+` but never `/a-:id+-b`, so I never faced anything like `foo:g+bar`. Semantically speaking I do expect a list...
I would consider this useful for error reporting and inspecting purposes. For example, if a user tries to build a path by passing an object of groups to the pattern...