Skip to content
Source
Sign inSign up
TanStack/db

Angular input signals and compiled test setup #1509

Closedbenjavicente(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/1509/headopened

🎯 Changes

I saw that the adapter had a call to a derived signal in initialization, witch breaks when using Angular's input signals. So I setup the package with compiled Angular tests, created a failing tests that checks against the issue, and finally fixed the issue by using linked signals to have a setable signal that starts with an initial value coming from another signal.

I also removed the external cleanup to just use the effect's cleanup, and used Angular's stability checks to wait effects instead of the error-prone setTimeout to trigger macro tasks with a delay.

✅ Checklist

  • I have tested this code locally with pnpm test.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. Thanks for the bug report! I fixed it in https://github.com/TanStack/db/pull/1944 and will release soon

    2. KyleAMathews closed this

Sign in to join this conversation.