history implementation - TanStack