Items
-
Dead utils.entries.list.invalidate() calls - In src/lib/cache/operations.ts:127 and src/lib/hooks/useEntryMutations.ts:372, utils.entries.list.invalidate() is called but no component subscribes to the tRPC entries.list query key anymore (the view collection uses separate ["entries-view", filterKey] query keys). These calls are dead code.
-
Unsafe as unknown as Subscription type cast - In src/lib/cache/operations.ts:60, subscription as unknown as Subscription bypasses type checking. The SubscriptionData interface should either extend or be compatible with Subscription, or addSubscriptionToCollection should accept SubscriptionData.
-
Duplicate EntryType definition - EntryType is defined as "web" | "email" | "saved" in src/lib/hooks/useEntryMutations.ts:36 and also exists in src/lib/queries/entries-list-input.ts. Should use a single shared definition.
Related to #580 (tanstack-db branch).
-- Claude
Items
Dead
utils.entries.list.invalidate()calls - Insrc/lib/cache/operations.ts:127andsrc/lib/hooks/useEntryMutations.ts:372,utils.entries.list.invalidate()is called but no component subscribes to the tRPCentries.listquery key anymore (the view collection uses separate["entries-view", filterKey]query keys). These calls are dead code.Unsafe
as unknown as Subscriptiontype cast - Insrc/lib/cache/operations.ts:60,subscription as unknown as Subscriptionbypasses type checking. TheSubscriptionDatainterface should either extend or be compatible withSubscription, oraddSubscriptionToCollectionshould acceptSubscriptionData.Duplicate
EntryTypedefinition -EntryTypeis defined as"web" | "email" | "saved"insrc/lib/hooks/useEntryMutations.ts:36and also exists insrc/lib/queries/entries-list-input.ts. Should use a single shared definition.Related to #580 (tanstack-db branch).
-- Claude