-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-emptively fetch answer reaction state #1459
Conversation
1654852
to
f91d2f2
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1459 +/- ##
==========================================
+ Coverage 95.41% 95.47% +0.06%
==========================================
Files 174 174
Lines 2702 2697 -5
==========================================
- Hits 2578 2575 -3
+ Misses 124 122 -2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked about this in private already, I'll leave the feedback here just so we don't forget about it.
I'm not a fan of this approach because comparing against a pre-fetched set of IDs makes it harder to make independent components out of specific features. It brings a performance improvement, but at the cost of maintainability.
I'm personally not sure how to solve this. If a different way of caching, or using something like
if a global containing a pre-cached set of IDs is available, prefer that over fetching data yourself
could allow for both cases.
@pixeldesu @nilsding I rewrote this using subqueries, so the additional lookup queries aren't required at all. |
1e63338
to
8facb44
Compare
No description provided.