Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

reload data-turbolinks-permanent section sometimes #590

Open
BigGitWorld opened this issue Nov 27, 2020 · 1 comment
Open

reload data-turbolinks-permanent section sometimes #590

BigGitWorld opened this issue Nov 27, 2020 · 1 comment

Comments

@BigGitWorld
Copy link

BigGitWorld commented Nov 27, 2020

Hi.
I'm going to create an E-commerce web application that have a sidebar including different filters for different categories.
I'm using data-turbolinks-permanent to keep sidebar fragment (div) from changes generally. but I need to change it sometimes (for example when category will be changed).
So, I'm looking for a solution to be able to reload the data-turbolinks-permanent div fragment manually.

I think it would be nice if the turbolinks could replace data-turbolinks-permanent section by the new HTML content, if the new one (coming from server) does not have this attribute (data-turbolinks-permanent).

What do you think?
Is there anyway to do it now?

@rahul-bluebash
Copy link

@BigGitWorld Yes, I am facing the same issue. Any solution or workaround please ?

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

No branches or pull requests

2 participants