Skip to content
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

Pagination when go back to the previous page #466

Open
Utzig26 opened this issue Oct 4, 2021 · 0 comments
Open

Pagination when go back to the previous page #466

Utzig26 opened this issue Oct 4, 2021 · 0 comments
Assignees
Labels
bug Something isn't working Medium priority This issue has medium priority.

Comments

@Utzig26
Copy link
Collaborator

Utzig26 commented Oct 4, 2021

The file that has the code for load new posts is /app/javascript/packs/custom/posts.js
it is called by:

  • /app/views/bots/show.js.erb
  • /app/views/posts/index.js.erb
  • /app/views/posts/show.js.erb

Which are loaded just when their respective pages with the same name are loaded, that means it will only load when these pages are loaded (because turbolinks gem).
If you go and then go back to a page, it will not reload the .js.erb, so will not reload the pagination too.

Similar to #369
I don't know if it happened before.( i don't think so, that makes all more confusing).

@Utzig26 Utzig26 added bug Something isn't working Medium priority This issue has medium priority. labels Oct 4, 2021
@Utzig26 Utzig26 self-assigned this Oct 4, 2021
@Utzig26 Utzig26 added this to To do in IA-e Frontend via automation Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Medium priority This issue has medium priority.
Projects
Development

No branches or pull requests

1 participant