Skip to content

Commit

Permalink
fix: loading of the next page on intersect once instead of revealed
Browse files Browse the repository at this point in the history
  • Loading branch information
thelissimus-work committed Mar 1, 2025
1 parent 6b8b659 commit a71b148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type IndexPageProps struct {
func mkInfiniteAttrs(props *IndexPageProps) templ.Attributes {
return templ.Attributes{
"hx-get": fmt.Sprintf("/users?page=%d&name=%s&limit=%d", props.Page+1, props.Search, props.PerPage),
"hx-trigger": "revealed",
"hx-trigger": "intersect once",
"hx-swap": "afterend",
"hx-target": "this",
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a71b148

Please sign in to comment.