Content pfp
Content
@
0 reply
0 recast
2 reactions

Brenner pfp
Brenner
@brenner.eth
Ok who wants to help me understand nextjs app router? And ‘use client’ vs ‘server-only’? I’m not used to not being able to have any “useState()” functions wherever I want??
10 replies
9 recasts
147 reactions

​woj ツ pfp
​woj ツ
@woj.eth
sever is the default execution environment now but its totally fine not to use it if you dont want to use it just add 'use client' and you can use hooks again one you do use client, all downstream components will be rendered on client side too
1 reply
3 recasts
74 reactions

Brenner pfp
Brenner
@brenner.eth
I’m using tPRC and that uses “server-only” so it’s wanting my whole page to be server if I am using the tPRC call at all, so I’m not sure how to make that call and also be able to use “useState”? The mental model doesn’t make sense to me yet
1 reply
0 recast
0 reaction