Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unify Vue's asynchronous reads and optimistic writes around the reactive graph while preserving the broader Composed Async motivation.
<Suspense>model remains incomplete: dependencies are component-shaped, async setup is implicit and coarse, revalidation follows tree shape, pending causes are opaque, and mutations use a separate consistency modelcomputed()getters to return Promises and exposeComputedRef<Awaited<T>><Suspense>handle initial fallback and hold committed content during revalidationoptimistic(target, { update, run, commit })with reconciliation, rollback, and deterministic rebasing for overlapping mutations<script async setup>,v-defer, and<Suspense :with>APIsThe proposal remains transport- and cache-agnostic. It does not define server actions, form submission, automatic cancellation, or a source-level pending API.
Links
Validation
pnpm dlx prettier@3.6.2 --single-quote false --check active-rfcs/0045-composed-async.mdgit diff --checkImportant: Do NOT comment on this PR. Please use a corresponding RFC discussion thread for feedback, as it provides branched discussions that are easier to follow.