Content
@
0 reply
0 recast
0 reaction
Robotandkid
@robotandkid
q: Can you make network calls directly in the React render function? IMO, the network call itself won't degrade performance. (It'll just get put on the async queue so won't block rendering). However, it's not best practice because there's stuff that's harder to do now (ex: fetch only once, canceling the request).
1 reply
0 recast
2 reactions
Charlie
@charliewilco
isn't this what use() is for? https://react.dev/reference/react/use
2 replies
0 recast
0 reaction
Robotandkid
@robotandkid
yes but at work we're still on 16/18
0 reply
0 recast
0 reaction