Stimulus Discourse

About Turbolinks-android adapter


#1

I just came across turbolinks-anroid adapter github repo, and it says that the adapter is deprecated, because of some inner working of newer versions of chrome.
I was starting an application and was planning to use Turbolinks for web, and both turbolinks-android and turbolinks-ios for apps. But after reading the [deprecated] at turbolinks-android repo, I’m very sad now.

I know it’s not an appropriate place to ask this question, but as Basecamp employees (who also happen to work on front-end of Basecamp) often reply questions on this forum, so I have this question for them, even if it’s not directly related to StimulusJs.

Will the turbolinks-android adapter-2 come in a month or so? or will it take several months? (in which case I have to look for some other option, even though I’ll miss the ease of using turbolinks-android).

@sam @javan


#2

Hi,

The new Turbolinks Android adapter (v2) is under active development, but it’s very early on, so we’re definitely more than a month away (probably more like many months away). Right now we don’t have any firm target dates since we’re so early in the process.

Sorry that I don’t have better news than that. As we mentioned in the deprecation notice, the changes to Chrome were too deep for us to overcome in the existing architecture, and we didn’t want to paint you into a corner and cause you to have further difficulties down the road. So while there is some short term pain without it, we think it will serve your Android app best to go with a single-activity, non-Turbolinks approach for now.

Thanks,
-Dan


#3

Hi Dan,
Thank you for the reply!

BTW is there no way to create the app with the version 1 of turbolinks android adapter, and when the version 2 is released, convert it to the version 2?


#4

I wouldn’t recommend that, with what we know now. The early drafts are taking a completely new approach to navigation which could have a major impact to the implementation. The interface to the TurbolinksSession might look similar, but so much of the underlying plumbing is different that I doubt the transition would be easy/worth it.