Query string uncleared on router.reload() #1637
Replies: 5 comments 5 replies
-
@eddysantos Hello, did you find how to fix it? |
Beta Was this translation helpful? Give feedback.
-
I think this is probably a bug. The query strings would not get removed if you remove them from the data option. It will update it if you change the value. I ended up setting them to null instead of removing them from the data object. This works but it makes the URL quite ugly. |
Beta Was this translation helpful? Give feedback.
-
In my case using get wouldn't partially reload. The page would reload every props. This woud not work.
But this would.
I am fully aware that I mught have done something wrong here but so far I could not find out what it is.
|
Beta Was this translation helpful? Give feedback.
-
For the ones that would find it useful router.visit(window.location.pathname) if a full reset is intended.
|
Beta Was this translation helpful? Give feedback.
-
Also Ziggy can be used with With parameters: Without parameters: |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a watcher over a reactive filter object which triggers a page reload whenever the filter changes.
Everything works fine, except when I clear one of the text inputs that filters by name on real time, when that input is cleared, the query string still remains with the last input it submitted to the server.
Is this by design? Should it have an option to be able to clear the query string if the specific property is unset?
Beta Was this translation helpful? Give feedback.
All reactions