How to handle nested objects without re-render the whole app? - TanStack