| ▲ | bondarchuk 4 days ago | |||||||
>The "server" (mocked client-side for this demo Hmmm.... I wonder why that is...... | ||||||||
| ▲ | lkbm 4 days ago | parent [-] | |||||||
I mean, I guess it's fine to mock stuff here, but when I tried clicking the button, I first opened the network tab of devtools, and was confused by the lack of any request being made. (The console explained, showing "[HTMX Demo Mock] fetch: POST /demo/clicked" and "[HTMX Demo Mock] Returning mock for: POST /demo/clicked") Your demo shouldn't have explicit lies, such as "It worked. That was an actual HTMX POST request. The "server" returned this HTML and HTMX swapped it in." I mean, I guess maybe it made an HTMX POST request, not an HTTP POST request? But this does reduce my trust in the article. | ||||||||
| ||||||||