-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add or improve history actions #11
Comments
Thanks for opening this! I'm happy to take a look on adding such an action! |
@marcoroth FYK navigation isn't that simple, unfortunately. See this: hotwired/turbo#792 |
I was wondering if expanding the turbo_power/src/actions/history.ts Lines 3 to 9 in 623a6f5
|
Sounds OK if that would let one push state solely on |
Yeah, I thought it could be similar to how turbo_power/src/actions/browser.ts Lines 17 to 29 in 623a6f5
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
|
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 theBack
button is not doing what is expected when the browser history is modified without touchingTurbo.navigator.history
. As a workaround, theinvoke
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 :/
The text was updated successfully, but these errors were encountered: