Version: 5.xx.xx
useLogList
If you need to list audit log events, you can use the useLogList hook of Refine, which uses the get method from auditLogProvider under the hood.
Usageโ
import { useLogList } from "@refinedev/core";
const postAuditLogResults = useLogList({
  resource: "posts",
});
API Referenceโ
Propertiesโ
| Property | Type | Default | 
|---|---|---|
| resource ๏นก | string | Action that it reads from route | 
| action | string | |
| author | Record<string, any> | |
| meta | Record<string, any> | |
| queryOptions | UseQueryOptions<TQueryFnData, TError, TData> | 
Type Parametersโ
| Property | Description | Type | Default | 
|---|---|---|---|
| TQueryFnData | Result data returned by the query function. Extends BaseRecord | BaseRecord | BaseRecord | 
| TError | Custom error object that extends HttpError | HttpError | HttpError | 
| TData | Result data returned by the selectfunction. ExtendsBaseRecord. If not specified, the value ofTQueryFnDatawill be used as the default value. | BaseRecord | TQueryFnData | 
Return valuesโ
| Description | Type | 
|---|---|
| Result of the react-query'suseQuery | UseQueryResult<{ data: TData; }> |