Back to Daily Feed 
SolidJS Signals 2.0 RC.5 Introduces Promise-Based Refresh
Worth Reading
Originally published on SolidJS Releases
View Original Article
Share this article:
Summary & Key Takeaways
refresh(target)now returns a promise that resolves when the target's re-ask has settled.- This allows for awaiting the completion of a refresh operation, improving async flow control.
- Failed re-asks now reject the promise, enabling better error handling in actions.
- Disposed nodes are now explicitly refused by
updateIfNecessary, preventing certain bug classes.
Our Commentary
This refresh promise is a subtle but powerful addition to Solid's reactivity model. It gives developers more granular control over async operations, which is always welcome. I appreciate the focus on ensuring quiescence, not just flight identity. It feels like a natural evolution for a framework so deeply rooted in fine-grained reactivity.
View Original Article
Share this article: