Content
@
0 reply
0 recast
0 reaction
Vladyslav Dalechyn
@dalechyn.eth
played with fhub and nextjs and realized you can actually use it pretty easily if everything is wrapped with react server actions. there are few caveats though: - you can't use suspense queries. ssr disallows calling server actions in the initial render - only can be used in frameworks supporting rsc
1 reply
0 recast
4 reactions
Vladyslav Dalechyn
@dalechyn.eth
might fuck around and one shot a full react+rsc library to query hub from client side then useCastGetQuery(...) useReactionGetQuery(...) useFollowCreateMutation(...) will be compatible with nextjs, expo (experimental), waku
2 replies
0 recast
1 reaction
Samuel ツ
@samuellhuber.eth
Have you checked @ effect/platform HTTPAPI which if done with it gives you a client lib to call it directly?
1 reply
0 recast
0 reaction
Vladyslav Dalechyn
@dalechyn.eth
not sure if that can help but will check the problem is that grpc cannot be used in web environments + nextjs doesn't support http2 so something has to proxy all calls to the server side and return it to client. previously, people ran proxy servers separately, but now since nextjs and expo are also backend side frameworks, that makes less sense
1 reply
0 recast
0 reaction