Conversation
|
I was thinking of a use case for the exact opposite too: We could name that
Why |
You suggest to set a
The react-query doc says to use |
I was rather thinking of prefetching a certain number of items so that we can ensure that a page is filled with a sufficient number of items?
I think this might be a bit unintuitive to have two different approaches, depending on how many items were preloaded? |
I don't understand. This is the current default behaviour: every time we use |
|
Sorry, I think I wasn't very clear :) |
|
Indeed that seems useful. And if we don't want to prefetch any items, we can just set I would expect |
Add a new
fetchOnMountoption to the useCollection hook.If false (true by default), the collection will not be fetched on load but can be fetched later with the
refetchFor the
useInboxanduseOutboxhooks, it is false by default because most of the usages ofuseOutboxis to post activities, and thus we don't need to fetch the outbox.TODO
refetchworksuseOutboxanduseInboxstill work, notably with awaitActivity and liveUpdates