Could we write and use server action like this ?
'use server'
const action = (boundArgs) => async (args) => {
//...
}
From server component, we want to pass in boundArgs
function ServerComponent(): {
const boundargs = `blahblah`;
return <Component action={action(boundargs)} />
}
Could we write and use server action like this ?
From server component, we want to pass in
boundArgs