question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Add or improve history actions

See original GitHub issue

Thanks for the great lib!

It would be nice to have a shortcut to modify Turbo.navigator.history. I find it an essential action since the Back button is not doing what is expected when the browser history is modified without touching Turbo.navigator.history. As a workaround, the invoke action can be used at the moment.

More on the issue: https://discuss.hotwired.dev/t/back-button-not-working/3012

P.S. I’d really love to help but I’m not very familiar with Typescript yet 😕

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcorothcommented, Nov 15, 2022

Yeah, I thought it could be similar to how redirect_to works.

https://github.com/marcoroth/turbo_power/blob/623a6f5b11608073ac36880bd1f0cc4745a52e56/src/actions/browser.ts#L17-L29 By default it uses the one on Turbo, but if you don’t want that or if Turbo is not available it falls back to window

0reactions
pySilvercommented, Nov 15, 2022

Sounds OK if that would let one push state solely on window.history or the Turbo.navigator.history (sometime you want or another)

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FEATURE REQUEST] Add option to clean history as well #1281
I am concerned that if someone were to gain access to my physical device they could view my history and even if I...
Read more >
Feature Request - Add Status Requests Task History
When requesting a status update, please consider adding the message being sent to the user, and its time stamp, in the comments.
Read more >
Feature Requests - ReadMe Documentation
Have an idea for a new feature? Let us know by submitting to our planning board. Share your email address when you create...
Read more >
Suggest a feature - Visual Studio (Windows) - Microsoft Learn
A feature suggestion marked Need More Info means that we need more details so we can better understand your suggestion. Check the comments, ......
Read more >
Feature Requests - WP Fusion
Feature Requests Got an idea for a new feature or integration? We'd love to hear it! You can find our roadmap here.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found