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:
Peter Stockings
2024-04-11 17:43:16 +10:00
parent 63d997a3f1
commit 497a96be60
2 changed files with 2 additions and 9 deletions

View File

@@ -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"