Announcing result-rpc — typed RPC for TypeScript where errors and entities are first-class.
tRPC and oRPC nail the typed-call part. I wanted the two things that come *after* the call: what happens when it fails, and what happens to your cache when it succeeds.
https://t.co/vSvxu58UDY
Every call returns `Result<T, E>` — no `data`/`error` duality. E is one union: your per-procedure errors, plus cross-cutting ones (offline, timeout, client/server drift - these come out of the box), plus class-level ones (workspace-not-found, unauthorized - anything your app needs).
That's a huge union of errors to deal with.
It isn't, because of Shells — React components that *claim* errors where they belong in the tree. Offline ��� a banner. Unauthorized → a login redirect. Each shell subtracts what it handles from the type *above the caller component*, so by the time you reach your leaf, only the procedure-specific errors remain.
The types do the subtraction for you.
The wire format carries entities, not just JSON. Return `{ user: [User], totalPosts: number }` and every live `User` in your component tree updates — across every procedure. Mix mapped entities and one-off values freely. Date, Map, Set, URL all survive the wire.
This is my attempt to get the best of all worlds: urql and Relay for normalized identity, tRPC for E2E types and React ergonomics, Effect for taking error channels seriously.
https://t.co/vSvxu58UDY
/cc @captbaritone @_philpl @alexdotjs @aboodman @colinhacks @ssalbdivad thanks for all the inspiration.
Meirihlutinn talar fjálglega um trúnaðarmannatryggingu og Eflingarvottun, en samþykkti á sama tíma útvistun öryggisþjónustu til Securitas. Borgarstjórn f��l ráðinu að skerpa á keðjuábyrgð í mars 2025. Nú, rétt um ári síðar: Nákvæmlega ekkert
https://t.co/ElnvtqKrYd
Rosalegt hvað hægrið er farið að hegða sér alveg eins og libbarnir. Reka fólk úr háskólanum fyrir að hafa aðrar skoðanir. "Cancel culture" er greinilega bara í fína lagi ef það beinist ekki gegn þeim sjálfum.
@njf_liberty@EdbieLigerSmith Citing the first article of the act. That clause in the fisheries legislation was introduced to mislead the populace. It's quite remarkable, really, as the Icelandic public has no great enthusiasm for slash-and-burn capitalism.
@Stebbipett Þessi síða er opinn fyrir alla. Er ekki ritskoðuð. Það er óþarfi að óttast vopnaða byltingu. Fólk er að tjá sína reiði. Ég veit að það er ekki innan kurteisin viðmiða Krata. En þið verið bara að þola það.
@Ingunnlo@Dimma16@nicholeleigh19 Hún er ekki bara að birta reglugerðina heldur að tala gegn samninganefndinni og forystu félagsins og krefjast þess að Efling greiði úr sjóðanum og tæmi hann. Þar ser hún að leggjast á sveif með SA.
@nicholeleigh19 Agnieszka og Ólöf reyndu að fá lýðræðislegt umboð til að leiða Eflingu það tókst ekki. Það er einginn að hindra þær í að tjá sig. Stéttarvitund hvað var það sem þú vilt deila?
@Vegagerdin @sarastefans@straetobs Þetta er algjör rökleysa hjá ykkur. Og hugsanlega skortur á þjónustu vilja. Stað setning Strætó er almenn vitneskja sem er aðgengileg öllum. Og vona svo innilega að ég sé ekki að upplýsa ykkur um eitthvað sem þið vissuð ekki. Ef svo er hvernig fenguð þið starfið ?
Margfalt meira af kóbalti er notað til að hreinsa brennisteinn úr jarðefnaeldsneyti en nokkur tímann er notað við rafhlöðuframleiðslu.
https://t.co/rNogeU9O3v https://t.co/rNogeU9O3v