Urgent.News

What's breaking now, across thousands of outlets.

Tech

Solid 2.0: segnali asincroni, meno “primitivi magici” e un framework che prova a prevenire i bug prima di prod

La nuova major di Solid riscrive il modo in cui gestisci l’async: Promise come valori reattivi, loading state che spariscono e un tooling pensato anche per flussi con agenti. Negli ultimi anni ci siamo abituati a un paradosso: le UI diventano sempre più ricche, ma la base su cui poggiano (rete, servizi, dipendenze, supply chain) è sempre più fragile. In questo contesto, ciò che “non si rompe” non…

Original Italian Read in English

Solid 2.0 introduces new features that aim to prevent bugs before they happen, focusing on async handling. The previous major version had a clear separation between signals and async operations, but Solid 2.0 merges them seamlessly. By allowing computations to return promises, Solid 2.0 enables developers to handle asynchronous actions within regular computations and consume the results directly in JSX, just like regular values.

This change significantly reduces the complexity of managing loading states, race conditions, and stale data, as these aspects become part of the reactive model rather than ad-hoc flags and workarounds.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Why my app never sends a WhatsApp message by itself

When a customer cancels, the app prepares a message and a link. The salon owner opens the link, WhatsApp shows the chat with the text already in it, and the owner presses Send. The app has no way to send anything on its own, and that was a design decision before it was a feature.

More from Friday 20 November →