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

Static page cannot load the user info starting from version 2.6.38 #384

Open
Chenalejandro opened this issue Jan 1, 2025 · 0 comments
Open

Comments

@Chenalejandro
Copy link
Contributor

Chenalejandro commented Jan 1, 2025

Steps to reproduce:

  1. clone repo https://github.com/Chenalejandro/stackbug
  2. pnpm dev
  3. go to localhost:3000, click sign in and then enter the credentials to sign in

Expected: redirected back to the root page, where the user button will be shown
Actual: redirect back to the root page, but the sign in button is still there

If we go to localhost:3000/nonstaticpage, we can see the user button because it is a dynamic page. The root page is static.

You can downgrade @stackframe/stack to 2.6.37 and confirm that you can see the user button even in a static page.

This bug happens in both dev and production.

I cannot make the page.tsx a client component (with "use client";) since my component is an async function that fetches some data and statically generate the page with that data.

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

No branches or pull requests

1 participant