ibrahimyaacob
ibrahimyaacob11mo ago

Does peer component making the same call result in redundant calls/usage?

Lets say i have i have component A and B
<div>
<A/>
<B/>
</div>
<div>
<A/>
<B/>
</div>
both are making the same query via convex. does this result in 2 function calls interm of the usage ?
1 Reply
lee
lee11mo ago
If it's exactly the same query and A and B are both rendered, the query is deduped on the client. So the server only sees the one query, and it counts as 1 for usage.

Did you find this page helpful?