Example of accessing state in parseQuery