Skip to content

chore(frontend): remove obsolete TanStack patches and compatibility code #59

Closed

Description

@RentnerKev

Summary

Audit all local patches/workarounds introduced for older TanStack
versions.

The currently used TanStack version may already contain the upstream
fixes.

Requirements

Do NOT blindly delete patches.

For every patch/workaround:

  1. identify why it exists
  2. identify upstream issue/fix if possible
  3. verify current installed TanStack version contains the fix
  4. remove workaround
  5. run affected tests/build
  6. verify production behavior

Remove:

  • unused patch files
  • patch scripts
  • package.json hooks
  • comments referring to obsolete workaround
  • CI logic only needed for the patch

if truly obsolete.

Acceptance Criteria

  • obsolete patches removed
  • no necessary workaround accidentally removed
  • package install clean
  • frozen lockfile install works
  • web build works
  • relevant regression behavior tested

Workflow

UI/UX and cleanup only. Implement in a focused PR; merge only after current-head required checks and production smokes succeed. Do not publish Alpha 3.

Dependencies

Audit independently; finish validation after shared UI cleanup #58.

Completed audit

The only local TanStack patch remains necessary. The installed @tanstack/[email protected] source and ESM runtime need its request-abort guard: an already-aborted request with the matching abort reason returns an empty 499 response; unrelated and genuine application errors continue to return 500 and are logged.

No obsolete patch file, installer, compatibility hook or patch-only CI logic was found. Retaining this necessary patch satisfies the original acceptance criterion that no necessary workaround be accidentally removed. Its manifest and Docker build-context references must remain while it is required.

Validation: request-abort regressions cover all three outcomes; the full local check passed, frozen-lockfile CI installations and builds pass, and Production Smokes passed on the preceding PR head. The subsequent UI-only header change does not alter this runtime behavior.

The earlier future-upstream-removal follow-up was beyond the original audit scope. A future compatible upstream upgrade can remove the patch when the regression tests prove it unnecessary; that is not a prerequisite for completing this audit.

Activity

  1. added this to the v1.0.0-alpha.3 milestone on Sep 12, 2026
  2. added
    area: ui
    on Sep 12, 2026
  3. RentnerKev commented on Sep 12, 2026

    @RentnerKev
    MemberAuthor

    Audit result

    The currently pinned @tanstack/[email protected] does not include the request-abort fix. Its upstream requestHandler still passes the rejected handler directly to h3. Installed source and ESM distribution are patched consistently; production resolves the ESM distribution.

    The regression suite verifies: the matching cancelled-request reason becomes empty HTTP 499; genuine handler failures remain HTTP 500 even when the request is aborted. Removing the patch today would regress the first case.

    Retain the patch and its package/Docker references. Remaining scope: adopt an upstream version containing equivalent handling, then verify a clean frozen install, request-abort regressions, build and production smokes before removing both source/distribution hunks. This issue remains open rather than claiming the compatibility code is obsolete.

    Evidence: patches/@tanstack%[email protected], web/src/tests/tanstack-request-abort.test.ts, and official upstream source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions