getdozer / dozer-react

1 stars 2 forks source link

Watch behavior is confusing #5

Open v3g42 opened 1 year ago

v3g42 commented 1 year ago

https://github.com/getdozer/dozer-react#usedozerendpointqueryendpoint-string-options--query-dozerquery-watch-eventtype-

Problem

Currently watch maintains a limit of certain size when additional records are fetched from the server. And what remains and what doesn't remain is completely ad-hoc.

Solution

Problem

Solution

Either

(or)

chubei commented 1 year ago

I like a maxSize parameter and FIFO eviction policy. I imagine that's what a developer wants out of the box. We can implement this using query + on_event.

Pagination is too complex to fit in the library can be left in a sample.