All queries are dependent on a cookie value, need some advice on best approach - TanStack