GeekGene/mewsfeed

Profile popup on mentions inconsistently shows incorrect profile data

Opened this issue · 1 comments

mattyg commented

Steps to reproduce

  • navigate to feed
  • create a mew mentioning user 1
  • create a mew mentioning user 2
  • create several more mews mentioning user 2
  • view the profile popups for all the mentions, consistently at least one will show the incorrect profile name & data (excluding avatar and following status)

This is the result of a bug in @tanstack/vue-query where the queryKey used to retrieve data from the cache is not reactively updating. The queryKey for agent profile data includes the agent's pub key, which is passed as a component prop.

There is a PR open for a fix TanStack/query#5929

mattyg commented

Unfortunately the tanstack PR does not seem resolve the issue.