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

_document.tsx imports causes full page reload #44347

Open
1 task done
bugzpodder opened this issue Dec 25, 2022 · 1 comment
Open
1 task done

_document.tsx imports causes full page reload #44347

bugzpodder opened this issue Dec 25, 2022 · 1 comment
Labels
bug Issue was opened via the bug report template. stale The issue has not seen recent activity.

Comments

@bugzpodder
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

nextjs 12.3/13

In the repo I setup a new app with:

_document.tsx -> ../foo/index.ts -> ../foo/Foo.tsx

If I edit Foo.tsx it will do a full page reload
If I add another export in ./foo/index.ts for -> Bar.tsx and edit this file, it will also do a page reload.

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://codesandbox.io/s/winter-leftpad-2tgntn

To Reproduce

codesandbox

Describe the Bug

In the repo I setup a new app with:

_document.tsx -> ../foo/index.ts -> ../foo/Foo.tsx

If I edit Foo.tsx it will do a full page reload
If I add another export in ./foo/index.ts for -> Bar.tsx and edit this file, it will also do a page reload.

Expected Behavior

fast refresh when Bar is edited

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@bugzpodder bugzpodder added the bug Issue was opened via the bug report template. label Dec 25, 2022
@nextjs-bot
Copy link
Collaborator

This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.

@nextjs-bot nextjs-bot added the stale The issue has not seen recent activity. label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. stale The issue has not seen recent activity.
Projects
None yet
Development

No branches or pull requests

2 participants