Skip to content

fix(vue): restore placeholderData/initialData display fallback#827

Merged
MakhBeth merged 3 commits into
mainfrom
fix/vue-placeholder-data
Jul 24, 2026
Merged

fix(vue): restore placeholderData/initialData display fallback#827
MakhBeth merged 3 commits into
mainfrom
fix/vue-placeholder-data

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Restore TanStack placeholderData / initialData as a display-level fallback in @effect-app/vue makeQueryView via withDataFallback.
  • While pending with no cached value, data returns the resolved placeholder (with select applied when set); neither option is written to the atom cache, so the real fetch still runs.
  • Document agent PR workflow in AGENTS.md: always open PRs, draft while in progress/local validation, publish when ready.

Test plan

  • pnpm --filter @effect-app/vue test queryOptions.test.ts (placeholder → real data, function form, select, initialData precedence)
  • pnpm lint-fix
  • pnpm check

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

TanStack-compatible withDataFallback in makeQueryView: while pending with
no cached value, surface placeholder/initial data (pre-select) without
writing to the atom cache. Also document that agents must open PRs (draft
while validating, ready when done).
@pkg-pr-new

pkg-pr-new Bot commented Jul 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

@effect-app/cli

npm i https://pkg.pr.new/effect-app/libs/@effect-app/cli@827

effect-app

npm i https://pkg.pr.new/effect-app/libs/effect-app@827

@effect-app/eslint-codegen-model

npm i https://pkg.pr.new/effect-app/libs/@effect-app/eslint-codegen-model@827

@effect-app/eslint-shared-config

npm i https://pkg.pr.new/effect-app/libs/@effect-app/eslint-shared-config@827

@effect-app/infra

npm i https://pkg.pr.new/effect-app/libs/@effect-app/infra@827

@effect-app/vue

npm i https://pkg.pr.new/effect-app/libs/@effect-app/vue@827

@effect-app/vue-components

npm i https://pkg.pr.new/effect-app/libs/@effect-app/vue-components@827

commit: 881e702

omegent-app Bot added 2 commits July 24, 2026 21:25
Failures without previousSuccess have no AsyncResult.value and were
incorrectly replaced by placeholder/initialData. Gate the display
fallback on isInitial so errors pass through unmasked.
@MakhBeth
MakhBeth merged commit 413022d into main Jul 24, 2026
4 checks passed
@MakhBeth
MakhBeth deleted the fix/vue-placeholder-data branch July 24, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant