-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[TRP-62] Kitchen Sink Wishlist #1254
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sites I think are nice -- shows code and are quite interactive and clear |
Copy to clipboard closed by trpc/examples-kitchen-sink#3 I’m working on codesandbox links and almost done. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm working on basic examples of:
|
Wow, thanks! Note that Suspense have a bug in combo with |
I'd love to contribute! I'm afk, but will check tonight. But is there a way to do websockets with rooms/wildcard routes? Like have a chatroom example where there are trpc routes like
|
🙏
Please post these in the discussions or in discord as it's off-topic here, but I'll answer anyway :)
You can do:
|
Hahaha shortly after I posted, I realized that it probably wasn't the right
place or time to ask!
But that's legit!! I'll see about adding a feature or two!
…On Sat, Jun 18, 2022, 1:43 PM Alex Johansson ***@***.***> wrote:
@mrcampbell <https://github.com/mrcampbell>
I'd love to contribute! I'm afk, but will check tonight.
🙏
But is there a way to do websockets with rooms/wildcard routes?
Please post these in the discussions or in discord as it's off-topic here,
but I'll answer anyway :)
Like have a chatroom example where there are trpc routes like
chat.room.*.comments Where this resolver would return the data based on
specific rooms, like chat.room.room42.comments, where only those who can
see room42 can pub/sub to that room, and concurrently, there could be
room73, room99, etc.?
You can do:
- chat.room.byId({ id: 1 }) for the room, and
- chat.comments.byRoomId({ id: 1 }) for the room comments
—
Reply to this email directly, view it on GitHub
<#1254 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE2K5M7NLHURVPFDHGCUA3VPYRHHANCNFSM5H44DIWQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This issue has been locked because it had no new activity for 14 days. If you are running into a similar issue, please create a new issue. Thank you. |
Kitchen Sink
The goal of the Kitchen Sink is to provide a good collection of useful design patterns when working with tRPC. It should be easy to navigate kitchen-sink.trpc.io and have it as a reference site — the northern star would be the Tailwind Docs.
I will probably replace the main website with this site & I want to experiment with monetization. Maybe this could be the "tailwindui" of trpc.
Wishlist
Overall site improvements
Features
getStaticProps
🎉 Implemented[id].tsx
pageQueryCell
pattern - (add query cell pattern #1734)Stretch goals
How to contribute
Clone and start the Kitchen sink:
Adding an example
src/feature/X
by duplicating some of the existing onesmeta.tsx
src/pages/X
and import the filesrc/server/routers/_app.ts
TRP-62
The text was updated successfully, but these errors were encountered: