3 ms·
Does it really need to be generated on the backend and passed around like that? It seems like you're doing a ton of extra work to fit it into htmx, where comin
by Izkata 2y ago
Does it really need to be generated on the backend and passed around like that? It seems like you're doing a ton of extra work to fit it into htmx, where coming from jquery and react, it's much more natural to generate it entirely on the frontend using plain arrays and objects, then send it as a whole to the backend in one serialized json string. Of course with one final validation on the backend, possibly with a transformation into whatever query language the backend is using. But no need for round-trips to construct it like that.