I want to trigger a get request cycle without change in browser history. I have tried
Turbo.visit(url, { action: "advance" });
Turbo.visit(url, { action: "replace" });
But both change history.
I want to trigger a get request cycle without change in browser history. I have tried
Turbo.visit(url, { action: "advance" });
Turbo.visit(url, { action: "replace" });
But both change history.
You can use the action option with visit to trigger a get request cycle without changing browser history. visit(url, { action "advance" }) visit(url, { action "replace" })
You should be able to do the following:
Turbo.visit(url, { historyChanged: true });
This takes into account that the history was already changed and it will skip the step of updating the browser history.