Is it possible to create a `createCustomAction$`?
@nksaraf is it technically possible to create a custom
createCustomAction$
function that builds on createServerAction$
or server$
? This would allow library authors to keep the API simple, making the code more concise.
Specifically, I would like to provide a SolidStart integration for my form library Modular Forms to enable the creation of progressively enhanced forms. Below is a code example.
5 Replies
We want to have an API for this
we didnt have example cases yet but lots of things to consider.. around user understand of what to expect with a function like that
I understand. That means it's not possible at the moment, right?
not without changes
you can also write a vite plugin that does the appropriate tranform to
server$
calls
so its composable that wayBy when do you plan to provide the API for this? Depending on that, I would rather wait.
@nksaraf is there any news on this?
Not yet.. we're still figuring out how to expose this