Replies: 2 comments 3 replies
-
From what you said, it doesn't look related with any missing Pagy method. How did you manage to suppress the backtrace? |
Beta Was this translation helpful? Give feedback.
1 reply
-
https://www.stefanwienert.de/blog/2021/04/17/endless-scroll-with-turbo-streams/ There has been a PR in Turbo since which allows you to stream on GET requests. That should simplify the stimulus controller somewhat: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using version 5.10. I would look at the documentation for that version but it doesn't appear to be available anymore.
I'm implementing infinite scroll in the style of this article: https://www.stefanwienert.de/blog/2021/04/17/endless-scroll-with-turbo-streams/
Whenever I render
<%= pagy_nav(@pagy) %>
, I'm gettingNoMethodError: undefined method 'GET' for #<PurchaseRequest ..>
where PurchaseRequest is the model being paginated. I'm also getting that error when trying to usepagy_next_url(@pagy)
. There's also no backtrace.Do I need to require or include parts of Pagy in the view component rb to make these methods available?
Beta Was this translation helpful? Give feedback.
All reactions