Gabriel Nordeborn

@z-th.bsky.social

I like building stuff. I mainly tweet about ReScript, Relay and GraphQL. ReScript core contributor. @arizon_ab.

Just landed support in RescriptRelay for a new directive called @​exhaustive. Putting this on a field or fragment definition that's a union will force you to select all members explicitly of that union. Great for evolving your schema and being notified of new code paths, just like with enums.

Bild

I just stumbled on @z-th.bsky.social’s ResX and audibly said “how the fuck is he doing that” so many times when reading the docs Genuinely magical, I’m gonna try it out tonight and am super excited to. The HTMX handlers are just… I don’t understand how that’s possible lol.

After all these years, I still love Relay and GraphQL and the benefits they bring. Talk about standing the test of time, at least for me. I've used both since they were open sourced almost 10 years ago. They're not without issues ofc, but they answer all the big issues in UI development for me.

Explored options for my new personal project, from more common ones like Phoenix Liveview, to niche ones like Moonbit / Swift fullstack on Spin, Gleam fullstack with Wisp and Lustre, etc... Looks like I'm ending up with ReScript and @z-th.bsky.social stuffs like Resgraph, ReScriptRelay and pgtyped 😅

The new dot completion also works for objects. Objects are structurally typed, doesn't need a type definition, and are quite useful in some scenarios. Completion for object fields will be more ergonomic and get better discoverability with this addition.

With the new dot completion enhancements in our editor tooling you'll now get completions from the Option module when autocompleting on a record field that's an optional value, instead of just no completions like before.

This is one of the more exciting features I've worked on for the editor in a while. Pragmatic, useful and ergonomic. Just what we should be focusing on. I'm really proud of what we're doing! I look forward to 2025, which I think is going to be a big year for ReScript.

ReScript@rescript-lang.org · 2y ago

Happy new year! We're almost ready to release an exciting editor feature - dot completion everywhere! "." will now trigger completions for more than just record fields. Example: you'll get completions for pipeable functions from the module of that type. Examples and videos ⬇️

With the next version of RescriptRelay, you'll get access to a few new Relay APIs that makes using Relay without React with the full fragment based workflow possible. This opens up a few exciting possibilities, like using RescriptRelay + ResX to do (semi) static websites powered by Relay.......