Instead of retreiving list of users and workouts card on initial load which involves a second db call, use htmx onload callback
This commit is contained in:
@@ -79,10 +79,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<ul class="space-y-2 pb-2" hx-get="{{ url_for('get_person_list') }}"
|
||||
hx-trigger="updatedPeople from:body">
|
||||
{{ render_partial('partials/people_link.html',
|
||||
people=get_list_of_people_and_workout_count()) }}
|
||||
|
||||
hx-trigger="load, updatedPeople from:body">
|
||||
</ul>
|
||||
<div class="space-y-2 pt-2">
|
||||
<a hx-get="{{ url_for('settings') }}" hx-push-url="true" hx-target="#container"
|
||||
|
||||
Reference in New Issue
Block a user