Skip to content

Fix activity query cache misses for object query keys#478

Open
hiSandog wants to merge 1 commit intoCodebuffAI:mainfrom
hiSandog:fix-activity-query-key-normalization
Open

Fix activity query cache misses for object query keys#478
hiSandog wants to merge 1 commit intoCodebuffAI:mainfrom
hiSandog:fix-activity-query-key-normalization

Conversation

@hiSandog
Copy link
Contributor

Summary

  • normalize useActivityQuery cache keys before serialization so equivalent object-based query keys share the same cache entry
  • remove the unused mountedRef bookkeeping from the hook
  • update activity-query tests to assert staleness from query keys instead of JSON.stringify assumptions

Testing

  • git diff --check
  • unable to run bun test ... in this environment because bun is not installed

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