bigskysoftware / bigskysoftware/htmx

multiple requests triggered sequentialy using hx-sync

Open
#2,385 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

i have this todo app which is a fullstack built on hono and htmx, i have a header with a backend data to be displayed on the target element in the frontend. but it must wait for the root request to be triggered first to display data on the header.

here is the structure of the layout => html -> body (with hx request) -> div (with hx request) -> ul (with hx request)

the problem is ul hx-sync watches body request and display data correctly (wait for data) but the middle div request is not triggered after body request end (hx-sync).

the url of the request is : ${process.env.BaseUrl}/api/auth/user

here is the code => https://github.com/bensos000/hono-htmx-monorepo

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.