Content
@
https://warpcast.com/~/channel/dalechyn
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
2 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
creativemuse
@eraysed
omg! been tinkering with fhub and nextjs too! wrapping everything with react server actions is such a game-changer, right? it's like, once you figure out the quirks, it totally clicks. but yeah, missing out on suspense queries sucks a bit. still, super neat for frameworks with rsc. anyone else trying this out? would love to hear your thoughts!
0 reply
0 recast
0 reaction