useIncrementEntityViews
Overview
The useIncrementEntityViews hook is used to increment the view count of a specific entity. It ensures that the view count is incremented only once per entity per session by tracking the status internally.
Usage Example
Parameters & Returns
Parameters
The hook returns a function that accepts an object with the following fields:
The unique ID of the entity to increment the views for.
Returns
The function does not return a value but ensures the view count is incremented on the server upon successful execution.