Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useInbox and useOutbox: allow not to fetch inbox #1325

Open
srosset81 opened this issue Oct 27, 2024 · 0 comments
Open

useInbox and useOutbox: allow not to fetch inbox #1325

srosset81 opened this issue Oct 27, 2024 · 0 comments

Comments

@srosset81
Copy link
Contributor

The useInbox and useOutbox hooks rely on the useCollection hook. This hook automatically fetch the given collection.

The problem is that, in many cases, we use useOutbox only to post new activities. Furthermore, fetching the outbox can take a lot of time (there are performance issues until we solve #568). So we do something that is completely useless.

I suggest to add a new option to the useCollection hook to disable the automatic fetch. We should also add a fetch to do the fetch if we need to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant