Wanted to use visitAllLinks() but we have quite a few <LinkTo/> uses where we intentionally do not set the @query argument because we want users to return to whatever their previous state on the route was.
This causes issues when visiting a page and adding it to the queue, changing the queryParam, then later visitAllLinks tries to find the href that matches but <LinkTo/> has updated the href based on the most recently set QP values.
I was going to submit a fix but I can't find a great solution, just wanted to document this issue here in case anyone else runs into it or has a solution.
Wanted to use visitAllLinks() but we have quite a few
<LinkTo/>uses where we intentionally do not set the@queryargument because we want users to return to whatever their previous state on the route was.This causes issues when visiting a page and adding it to the queue, changing the queryParam, then later visitAllLinks tries to find the href that matches but
<LinkTo/>has updated the href based on the most recently set QP values.I was going to submit a fix but I can't find a great solution, just wanted to document this issue here in case anyone else runs into it or has a solution.