How to manage custom state settings - TanStack