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

variantを切り替える際に2回レンダリングが走っている #8

Open
momonoki1990 opened this issue May 18, 2021 · 0 comments

Comments

@momonoki1990
Copy link
Owner

Swatch.tsxrouter.replaceを実行しているが、setVariantなどと合わせて2回レンダリングが走ってしまっている。
→レンダリングを走らせずに、クエリパラメータを書き換えたい。

参考:
Silently replacing a URL #1938
vercel/next.js#1938

next.js router.replace without rendering
https://www.google.com/search?q=next.js+router.replace+without+rendering&sxsrf=ALeKk03r2ycqJo6TDqDt4ogbPgpoEaB07A%3A1621336656373&ei=UKKjYKanFuLd-QbAz4_AAQ&oq=next.js+router.replace+without+rendering&gs_lcp=Cgdnd3Mtd2l6EAM6BQgAELADOgkIABCwAxAIEB46BwgjEOoCECc6BAgAEEM6BAgAEAQ6CggAELEDEIMBEAQ6BAgjECc6BQgAELEDOgIIADoGCAAQBBAKOgQIABAeOgYIABAKEB46BwgAEAoQywE6BggAEAgQHjoFCCEQoAE6BQgAEM0COgQIIRAVOgcIIRAKEKABUIG6pBJYmailEmCfqqUSaAdwAHgAgAHUAYgBrSKSAQcyMy4xOC4xmAEAoAEBqgEHZ3dzLXdperABCsgBAsABAQ&sclient=gws-wiz&ved=0ahUKEwimj9vbjdPwAhXibt4KHcDnAxgQ4dUDCA4&uact=5

@momonoki1990 momonoki1990 changed the title variantを切り替える際にレンダリングが走っている variantを切り替える際に2回レンダリングが走っている May 18, 2021
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