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

Make turbo_frame_request? a helper method #564

Merged

Conversation

northeastprince
Copy link
Contributor

In my app, I was making an index view of records with an info frame at the top where you could edit the parent record. I thought that with broadcasting page refreshes everything would be updated even though in the controller it redirects to the same page (therefore normally only updating the frame), but because of the debouncing mechanism it didn't. I fixed the problem by forcing a full page reload if it came from a frame request, however, since only the turbo_frame_request_id method is defined as a helper, I can't just use turbo_frame_request? and have to use the more awkward turbo_frame_request_id.present?.

@brunoprietog
Copy link
Contributor

Thanks @northeastprince!

We also have this as a helper method

/cc @jorgemanrubia

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

Successfully merging this pull request may close these issues.

Feature request: Make turbo_frame_request? available as a helper method so apps using this gem can access it
2 participants