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
Issues with server-side vs client-side page loads #129
Comments
Found this discussion: vercel/next.js#11211 |
So @AbdulrhmnGhanem, you linked me this change which solves this in a way. It does feel like a work-around though. Can you explain why this is needed. From discussions above it shouldn't be needed. I also came across this issue where a lot of people are complaining about extra fetching needed for |
To check the user, who is making the request, not the project owner,
The docs recommend using |
That makes sense. We need to have a good way to persist the session that doesn't depend on The question about switching from |
In 634c77b, I tried To unify the logic I think we should do anything that relies on |
Also, take a look at next-express. Will it work given how the token is passed from gitea now? |
That doesn't make sense to me. It's there as |
This means I will duplicate the logic on the client-side and server-side for anything that accesses the |
I think we need to do a pair programming session to figure this out.
|
On some page transitions the user isn't loaded properly if you change page client-side. Especially noticeable around the user's logged-in state and project ownership (i.e. the file selection buttons don't show up unless you reload). Might this be because of heavy use of
getServerSideProps
. WouldgetInitialProps
be a better fit to what we are doing? What exactly is the difference?The text was updated successfully, but these errors were encountered: