keep query state in localStorage