-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Link tags do not populate Scripts on renavigation #42111
Comments
Could you clarify the use case? My explanation from earlier #42088 (comment) refers to the docs, but we can clarify it. So when a script has been loaded in the browser, a client-side navigation is not expected to remove/re-add/re-execute that |
…navigation (#42260) This PR explains that a navigation via `Link` would not re-execute `next/script` components once they are added. Fixes #42111 Ref: [slack thread](https://vercel.slack.com/archives/C02UJ0QH45Q/p1667237775929339) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: JJ Kasper <[email protected]>
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Refer to #42088
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Refer to #42088
Untitled.mov
That is the only main script that is supposed to be loaded... Which is not being loaded using link as noted in the recording.
It has been an issue since 2018. Unless I missed something from the docs that say there is another way to handle this..
#42088 has been closed too early.
Currently I am using a tag which refreshes the page, where as link tag doesnt Which is the main reason IMO this doesnt load it.
Expected Behavior
Refer to #42088
Link to reproduction
https://github.com/temrb/next-link-issue
To Reproduce
https://github.com/temrb/next-link-issue
The text was updated successfully, but these errors were encountered: