Post
This is after reading this: www.solidjs.com/blog/async-s... which is honestly very cool demo: playground.solidjs.com/anonymous/45...
if I click next page, I want to see the page number increment immediately, only parts depending on async stuff should delay changes until data is ready. So what am I missing (and this is not about Solid, Vue has similar issues with Suspense)? Or is this just for simple straightforward async/await?
0 reposts2 likes
For those use cases React has useOptimistic: react.dev/reference/re...
using latest(count) gives you the behavior you are looking for. v2.solidjs.com/reference/so...
v2.solidjs.comlatest - SolidJS DocumentationReads the freshest in-flight value available inside `fn`, falling back to the current settled value.