Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

enableTransitionCache() + data-turbolinks-permanent #619

Closed
nicolasmlv opened this issue Oct 8, 2015 · 0 comments
Closed

enableTransitionCache() + data-turbolinks-permanent #619

nicolasmlv opened this issue Oct 8, 2015 · 0 comments

Comments

@nicolasmlv
Copy link

Hello,
So I have this view :

screen shot 2015-10-08 at 19 12 16

And when I call this :

Turbolinks.visit("http://localhost/home");

A JS error is raised because there is a data-turbolinks-permanent element :
screen shot 2015-10-08 at 18 50 27

It is working if I remove enableTransitionCache() :
screen shot 2015-10-08 at 18 49 33

I guess this is something here :
https://github.com/rails/turbolinks/blob/master/lib/assets/javascripts/turbolinks.coffee#L190 or maybe we should update the Readme about this incompatibility (in the "Transition Cache: A Speed Boost" part)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant