Assume that the result of a query would be 50 elements long.
If you use that query in
useStreamQuery and leverage that output in a component, you are going to get 50 (51?) redraws of that component, as the result will be
[elem1] , then
[elem1, elem2] , …, then
[elem1, ..., elem50] and so on.
- Is the above correct? (our investigations seem to indicate that, but I’d still rather double-check)
- Is the example above expected behavior?
- If so, why?
My expectation would be that after calling
useStreamQuery I would
- get the current state,
- get updates on future state changes.