The filter property is currently not part of the public API of AutoGrid. There is a feature request you could upvote.
Alternativly, you could wrap your AutoGrid like described here: Hilla Endpoint with custom headers (e.g. for file download) - #7 by sissbruecker. This way you can save or apply the filter before the filter is passed to the list
function:
const [filter, setFilter] = useState<Filter>();
const ObservableOrderBrowserCallable = useMemo(
() => ({
...OrderBrowserCallable,
list(pageable: Pageable, filter: Filter | undefined, init?: EndpointRequestInit) {
setFilter(filter);
return OrderBrowserCallable.list(pageable, filter, init);
},
}),
[],
);