DJ
7 posts


🤯 I just saw a PR preview that adds first class subscriptions to @blitz_js as a third addition to queries & mutations. It works the same way, but with a useSubscription hook.
This uses streaming Content-Type: text/event-stream instead of websockets
RFC coming soon
English

@flybayer @blitz_js Having either option is nice, especially cause lambdas are nearly free for hobby projects, but after scaling up a bit, lambdas are expensive, limiting, and convoluted. Serverless is great for frontend stuff like nextjs, but blitz being full stack makes lambdas a harder sell imo
English

If we let go of the dream of running @blitz_js solely on lambdas, then we can fully embrace websockets and bake awesome real-time features into Blitz.
English

@jaredpalmer @flybayer @blitz_js I think the "aha" moment with blitz for me was seeing that the query works server-side in getServerSideProps as well as in a frontend AJAX call, and the type annotations on getPosts get applied on both sides
English

😱 Here's a mind blowing side-by-side comparison of GraphQL vs @blitz_js
✔️ All the end-to-end code needed for a single query
✔️ Both use Next.js w/ support for SSR
✔️ Both have end-to-end type safety with Typescript
✔️ Both select certain model fields


English

@kentcdodds @jeremyfiel Github's new CLI has been pretty nice. gh pr create to open a PR on current branch. cli.github.com
English

@jeremyfiel I've been using the UI for a long time and I haven't been motivated to change 🤷♂️
English

@kentcdodds can you share your pr workflow? are you using terminal or ui? i've looked at hub but I found this other one which doesn't appear to have much traction. they say it's a smoother experience than hub. bit.ly/34W3hrf
English


