I'm trying to stream an array from my database (clickhouse) to remix UI.
The clickhouse client gives me batches of rows, which should then send to remix, and refresh dependent components.
But I can't figure out how to send the batches as such, I can only accumulate in the loader and then send the whole thing, which means users wait for less relevant data, even though the most important data has already been send.
Is there some way to send along batches using a mechanism similar to defer?