Getting the active path: Best Practices - TanStack