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

[bug] Appkit makes Next.js app render twice #3594

Open
oluSammy opened this issue Jan 8, 2025 · 1 comment
Open

[bug] Appkit makes Next.js app render twice #3594

oluSammy opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working needs review

Comments

@oluSammy
Copy link

oluSammy commented Jan 8, 2025

Link to minimal reproducible example

https://codesandbox.io/p/devbox/49262s

Summary

While implementing Reown AppKit in a Next.js application following the official documentation (https://docs.reown.com/appkit/next/core/installation), I've observed unexpected multiple rendering behavior.

Steps to Reproduce:

  1. Followed the Next.js integration steps from the Reown documentation
  2. Added a timestamp log in the entry page:
    console.log("App Rendered", new Date().getTime());
  3. Observed the application behavior

Current Behavior:

  • The console log appears twice, indicating double rendering
  • This occurs consistently on initial page load
  • In our large-scale application, this double rendering is causing performance issues

Expected Behavior:

  • The application should render only once during the initial load

List of related npm package versions

  • @reown/appkit: 1.6.3
  • @reown/appkit-adapter-wagmi: 1.6.3
  • @tanstack/react-query: 5.63.0
  • @wagmi/core: 2.16.3
  • next: 15.0.3
  • React: 18
  • wagmi: 2.14.6

Node.js Version

v20.9.0

Package Manager

npm@9.8.1

@oluSammy oluSammy added bug Something isn't working needs review labels Jan 8, 2025
Copy link

linear bot commented Jan 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant