-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
When returning from the show screen to the index screen, has_many models cannot be manipulated #2607
Comments
has_and_belongs_to_many
and has_many: **, through: **
, I will not be able to operate the screen.
This is an ugly one. |
@adrianthedev |
When browser back button is pressed page loads from turbo cache. Still figuring out why all turbo links stop working... Noticed that adding @yuki-yogi the best solution that we can suggest right now is to disable turbo cache control on Still researching the cause and a better solution |
@Paul-Bob |
Build off this because I think it's the same root cause. When I run an action after using the back button in my browser,
This is a severe issue because it's causing the action to fail without warning to the user unless the action is set up to detect if the query is empty, which should never be true under normal circumstances. The only indication of failure is the url query params and the action modal not closing. |
@nrgbistro it's caching-related but the source issue is different, I'll create a new issue with your comment. |
I have confirmed that the same issue occurs with Avo v3.11.6 · Rails 7.2.0. https://avodemo.com/avo/resources/projects/35
Pagination doesn't work properly.
https://discord.com/channels/740892036978442260/1274908901313347644/1275026252817764373 |
@Paul-Bob can you please timebox this for one hour this week to maybe identify why things are failing on the back action? |
@yuki-yogi we found the issue. It's a turbo issue related to revisiting a frame that was lazy-loaded. More context here hotwired/turbo#886 There is already a PR to fix it and this issue should be fixed after the PR gets merged. I noticed some temporary fix suggestions on the original issue and made this PR #3160 which seems to fix the problem temporarily. |
@Paul-Bob Thank you so much for your prompt confirmation and response! I truly appreciate it. |
Describe the bug
has_and_belongs_to_many
andhas_many: **, through: **
.Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior & Actual behavior
User can be reordered and paged even after viewing the User details screen and returning to it in the browser.
System configuration
Avo version: 3.5.1
Rails version: 7.1.3.2
Ruby version: 3.2.0
License type:
This is occurring at https://avodemo.com/avo/resources/projects/39.
Are you using Avo monkey patches, overriding views or view components?
Screenshots or screen recordings
This is occurring at https://avodemo.com/avo/resources/projects/39.
has_and_belongs_to_many_error.mp4
Impact
Urgency
The text was updated successfully, but these errors were encountered: