Post

Something I can't get to like in async/suspense, no matter the framework is that it still shows the old values while waiting the async update, e.g. here clicking on the button increments, triggers a fetch but the displayed value is blocked until fetch completes

0 reposts3 likes

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?

Thanks! I never actually read the docs of this before Something just doesn't feel right: if `useOptimistic()` always takes a state value as a parameter why not collapse both functions into one? Or why the manual extra layer? Or does this also integrate with react transitions and covers more?