4 ms·
Why do you need to distinguish between those? In fact, if the function is pure, why not run it on the client?
by icebraining 10y ago
Why do you need to distinguish between those? In fact, if the function is pure, why not run it on the client?
- int_19h 10y agoBecause the server has more computational resources, for example. It's a very rare scenario in general, but it does happen. Why distinguish? Because if you know that the results are not affected by server state, they can be cached much more aggressively.