Content pfp
Content
@
0 reply
0 recast
0 reaction

Samuel pfp
Samuel
@samuellhuber.eth
use server directive is an antipattern and we should properly declare and use API endpoints. Change my mind
8 replies
0 recast
3 reactions

Sam pfp
Sam
@sams
Calling server functions is typesafe
1 reply
0 recast
0 reaction

Samuel pfp
Samuel
@samuellhuber.eth
you can do that with your API too.e specially in nextjs as you share types anyway
1 reply
0 recast
0 reaction

Sam pfp
Sam
@sams
Yeah but you have to manually define the type and cast the fetch response don’t you?
0 reply
0 recast
0 reaction