How to handle when query depends on a non string/JSON serializable object reference? - TanStack