You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When to make a search form with the form component, it seemed there is no way to record the action in the browser history.
Suppose a man has searched words "Foo", "Bar" and then "Baz" and wanted to back to the result of "Foo".
But if he clicked the back button then the browser shows the page everything has not happened yet.
I am wondering on it is designed behavior or a bug.
Please go to the reproduction link and click the Open in New Tab button at the top rigth corner.
And then type some words and click "submit" button. You can find no history has made.
This is not depending on if reloadDocument is set or not.
I think it is the best if there can be a way to store the states made by useStore or useSignal and viewing parameters such as the scroll position in the history and restore it when the browser goes back.
@genki you can use useNavigate to add your query strings to the history.
with routeAction$ I didn't find the way to redirect to the same path + query strings
So I'm closing this issue for now, feel free to re-open it if it's still an issue for you.
Which component is affected?
Qwik City (routing)
Describe the bug
When to make a search form with the form component, it seemed there is no way to record the action in the browser history.
Suppose a man has searched words "Foo", "Bar" and then "Baz" and wanted to back to the result of "Foo".
But if he clicked the back button then the browser shows the page everything has not happened yet.
I am wondering on it is designed behavior or a bug.
Reproduction
https://stackblitz.com/edit/qwik-starter-ry1wpp?file=src/routes/index.tsx
Steps to reproduce
Please go to the reproduction link and click the
Open in New Tab
button at the top rigth corner.And then type some words and click "submit" button. You can find no history has made.
This is not depending on if
reloadDocument
is set or not.System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: