Skip to content
Source
Sign inSign up
TanStack/redact

fix: preserve suspended root transitions and urgent updates #91

Mergedtannerlinsleymerged 1 commit intomain fromtaren/root-transition-fixmerged by tannerlinsley

tannerlinsleycommented

Root renders inside a transition could show a Suspense fallback immediately or lose pending ownership. Keep root callbacks in the transition queue so suspended renders retain visible content, urgent updates stay ordered, and replacement transitions and unmounts cancel stale work.

Adds ten regression cases, including a reproducible React Compiler fixture. Validation on current main: 1,965 tests passed, 91 skipped; types, build verification and all size gates passed. The approved correctness tradeoff measures +111 built default-Vite gzip bytes (+132 source); only over-budget entries receive their measured allowance. Earlier isolated validation also matched 150 React browser comparisons across Chrome, Firefox and WebKit.

    1. 🦋 Changeset detected

      Latest commit: fcc5f79a7aba1d3f689c01deae0437e52684c022

      The changes in this PR will be included in the next version bump.

      This PR includes changesets to release 1 package
      NameType
      @tanstack/redactPatch

      Not sure what this means? Click here to learn what changesets are.

      Click here if you're a maintainer who wants to add another changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Caution

      Review failed

      The pull request is closed.

      Finishing Touches
      📝 Generate docstrings
      • Commit to this branch
      • Create a new PR
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    3. tannerlinsley merged this89f2bfc

    4. tannerlinsley closed this

Sign in to join this conversation.