How to update the context inside the component? - TanStack