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

getServerSideProps leads to unexpected unauthenticated queries #7398

Open
Betree opened this issue May 6, 2024 · 0 comments
Open

getServerSideProps leads to unexpected unauthenticated queries #7398

Betree opened this issue May 6, 2024 · 0 comments

Comments

@Betree
Copy link
Member

Betree commented May 6, 2024

Reported in https://opencollective.slack.com/archives/C03AWL58JRM/p1714959134372579

Describe the bug
getServerSideProps is always unauthenticated. Yet, we rely on it to refetch data for multiple pages when dealing with pagination (expenses, transactions, updates). As a result, we're seeing the action buttons disappear when navigating through pages.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://staging.opencollective.com/babel/expenses as an admin
  2. See admin buttons (pay, add tags...etc)
  3. Move to page 2
  4. See missing buttons

Possible solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant