使用下一个JS发送请求而不是客户端过渡

发布于 2025-01-18 15:24:48 字数 636 浏览 3 评论 0原文

开始了解下一个JS并尝试与React一起使用,而下一个JS则解决SEO友好主题,例如SSR,默认代码 - 分类,使用页面目录也强制使用< link>组件而不是< a>在第一个请求之后启用默认客户端端过渡,如何每次将请求发送到服务器?有什么方法可以避免客户端的过渡并启用浏览器默认行为。

在使用链接的情况下,请感谢

const Check = () => {

   return (<Link href="/about"> <a> About </a> </Link>);
}

您禁用浏览器默认加载,以确保客户端过渡,我们如何在没有客户端端过渡的情况下启用浏览器默认值。我已经在其文档中看到了.eslint JSON特定配置,并且无法找到任何属性。

编辑:

”何时使用”

Started understanding Next js and trying to use along with React, while Next js addresses the SEO friendly topics such as SSR, default code-splitting, using pages directory it also forces to use <Link> components instead of <a>enabling the default client side transitions after the very first request, How can i send the request to server everytime ? Is there a way we can avoid client-side transitions and enable the browser default behavior.

Thanks in Advance

const Check = () => {

   return (<Link href="/about"> <a> About </a> </Link>);
}

Using Link is mandatory and it disables the browser default loading ensuring the client transitions, How can we enable the browser default without client side transitions. I have seen the .eslint json specific config in their documentation and unable to find any property for that.

EDIT:

When  is used

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文