Equivalent to React Router `handle`? - TanStack