From 4cdc686693e4be804b64fa0e3d35063835ca7449 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Tue, 20 Aug 2024 13:57:13 -1000 Subject: [PATCH] Update turbolinks.md --- docs/rails/turbolinks.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/rails/turbolinks.md b/docs/rails/turbolinks.md index 98f302070..98e3f1f89 100644 --- a/docs/rails/turbolinks.md +++ b/docs/rails/turbolinks.md @@ -1,15 +1,21 @@ -# Turbolinks and Turbo +# Turbolinks and Turbo Support -## Updated to support Turbo +## React on Rails Updated to support Turbo, August 2024 +* See [PR 1620](https://github.com/shakacode/react_on_rails/pull/1620). * See [PR 1374](https://github.com/shakacode/react_on_rails/pull/1374). * Ability to use with Turbo (@hotwired/turbo), as Turbolinks gets obsolete. -To configure turbo the following option can be set: +# Using Turbo + +To configure Turbo the following option can be set: `ReactOnRails.setOptions({ turbo: true })` Turbo is not auto-detected like older Turbolinks. -*Below docs maybe outdated* +_TODO: Walk through code changes in PR 1620._ + +# Legacy Turbolinks +*The below docs may be outdated. We recommend updating to the latest Turbo or removing old Turbolinks.* * See [Turbolinks on Github](https://github.com/rails/turbolinks) * React on Rails currently supports 2.5.x of Turbolinks and 5.0.0 of Turbolinks 5.