-
Notifications
You must be signed in to change notification settings - Fork 5
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
Don't refetch pinned project list more than we need to #472
Conversation
✅ Deploy Preview for documentcloud-frontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for documentcloud-frontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Coverage report
Test suite run success84 tests passing in 16 suites. Report generated by 🧪jest coverage report action from db1418d |
@@ -36,9 +36,6 @@ | |||
if (!equal($pinStore, pinned)) $pinStore = sortPins(pinned); |
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.
This line was supposed to prevent the update loop, but it clearly wasn't.
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.
Equality is as hard to check as it is to achieve.
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.
I think the computed value was the issue, though. It told svelte to set the store value every time the store value changed, so it was always behind.
The computed property was causing a recurring fetch.