Skip to content

feat(client): supply operation to the httpSubscriptionLink's eventSourceOptions - #6149

Merged
KATT merged 3 commits into
trpc:nextfrom
changesbyjames:next
Oct 28, 2024
Merged

KATT merged 3 commits into
trpc:nextfrom
changesbyjames:next

Conversation

@changesbyjames

@changesbyjames changesbyjames commented Oct 22, 2024 •

Copy link
Copy Markdown
Contributor

Closes #6148

🎯 Changes

What changes are made in this PR? Is it a feature or a bug fix?
A new feature to supply the operation that initialises an EventSource in httpSubscriptionLink.

✅ Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

@changesbyjames
changesbyjames requested a review from a team as a code owner October 22, 2024 17:21
@vercel

vercel Bot commented Oct 22, 2024

Copy link
Copy Markdown

@changesbyjames is attempting to deploy a commit to the trpc Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Oct 22, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 6:37pm

@KATT KATT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the change but please supply a test and update the docs as well

@changesbyjames

Copy link
Copy Markdown
Contributor Author

Hey @KATT, I'm happy to change the docs but I'm not quite sure where to start on the tests. Could you point to the closest test that would be a good starting point and I'll try my best?

@KATT

KATT commented Oct 23, 2024

Copy link
Copy Markdown
Member

some pointers:

you could e.g. make a new describe()-block with a new const ctx = konn() that uses this new argument or create a new file for it or edit the existing link-setup in that test

@KATT

KATT commented Oct 23, 2024

Copy link
Copy Markdown
Member

pnpm test-watch httpSub should be enough to run it when you're deving

@changesbyjames

Copy link
Copy Markdown
Contributor Author

@KATT Thank you for those pointers! I believe I have resolved everything, please let me know if you'd like me to change anything 🙂

@KATT KATT changed the title Implemented: supply operation to the httpSubscriptionLink eventSourceOptions feat(client): supply operation to the httpSubscriptionLink's eventSourceOptions Oct 28, 2024
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 30, 2024

This branch was successfully deployed

2 active deployments
Preview – www — a0b40766 Deployed Oct 28, 2024 by vercel[bot]
Preview – trpc-next-app-dir — a0b40766 Deployed Oct 28, 2024 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: supply operation to the httpSubscriptionLink eventSourceOptions.

2 participants