Using server action from Next js with Rescript

I am trying to use rescript in one of my existing next js app. And I couldn’t make server actions work properly. Does anyone has done it before?

Could you describe what you tried and what was the outcome?

I think the issue in rescript is that there’s no way to have directives outside of the top level.

I think nobody has taken the time to implement it so far.

It’s implemented, but just in v12: ReScript Playground

1 Like