4 ms·
If we continue the cart example, what should HTTP endpoint return in that case?
by sesm 3y ago
If we continue the cart example, what should HTTP endpoint return in that case?
- paranoidxprod 3y agoIn this example, the html for the card which looks different and the cart with the updated count could be returned. HTMX will swap both with the appropriate element based on the ids of the elements in the Dom and the elements being returned by the server and this won’t cause a whole page refresh or anything.