Skip to content

DataLoaders are not dispatched inside subscriptions when registered using AddDataLoader #8169

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

Closed
dannyheard7 opened this issue Mar 24, 2025 · 1 comment
Assignees

Comments

@dannyheard7
Copy link
Contributor

dannyheard7 commented Mar 24, 2025

Product

Hot Chocolate

Version

15.0.0 onwards

Link to minimal reproduction

https://github.com/dannyheard7/SubscriptionDataLoaderNotDispatched

Steps to reproduce

Configure a dataloader registered using AddDataLoader.

Configure a subscription that loads data using that dataloader,
Call that subscription.

What is expected?

The dataloader is dispatched in the same way as queries and mutations.

What is actually happening?

The dataloader is never dispatched

@michaelstaib
Copy link
Member

Within a subscribe methods no DataLoader are allowed.

@michaelstaib michaelstaib closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants