Skip to content
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

hooks/campaigns.ts: Disable useCampaignList on client #1568

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

sashko9807
Copy link
Member

@sashko9807 sashko9807 commented Aug 22, 2023

Necessary data is prefetched on the server, and since campaign's data is no longer considered stale, it results in 2 queries to the server being made.
Due to the call of useCampaignList, the campaigns are being reordered twice - once on the server, once on client load, which makes it unpleasant for the users.

Campaigns' data is prefetched on the server, and since campaign's data is no longer stale, it results in 2 queries to the server being made.
Due to the call of useCampaignList twice, the campaigns are being reordered twice - once on the server, once on client load, which makes it unpleasant for the users
@github-actions
Copy link

github-actions bot commented Aug 22, 2023

✅ Tests will run for this PR. Once they succeed it can be merged.

Copy link
Contributor

@igoychev igoychev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@igoychev igoychev added the run tests Allows running the tests workflows for forked repos label Aug 23, 2023
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Aug 23, 2023
@igoychev igoychev merged commit d562d11 into podkrepi-bg:master Aug 23, 2023
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.

2 participants