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

[@mantine/next] Avoid page double render #348

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

zifeo
Copy link
Contributor

@zifeo zifeo commented Oct 27, 2021

Based on https://github.com/vercel/next.js/blob/v12.0.1/packages/next/server/render.tsx#L522-L532, this avoids the need for double page render. After investigation, the potential unneeded render has been introduced in the official example but does not exist in the earlier proposed solution. There might a reason (layered override?) for it but I am unable to find relevant explanation.

@rtivital rtivital changed the base branch from master to next-minor October 28, 2021 06:40
@rtivital rtivital merged commit 95f8397 into mantinedev:next-minor Oct 28, 2021
@rtivital
Copy link
Member

Thanks, it works fine without page rerendering from context

@zifeo zifeo deleted the patch-2 branch October 28, 2021 11:22
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Jan 5, 2022
> Based on https://github.com/vercel/next.js/blob/v12.0.1/packages/next/server/render.tsx#L522-L532, this avoids the need for double page render. After investigation, the potential unneeded render has been introduced in the official [example](https://github.com/vercel/next.js/pull/20228/files#diff-3976da223aaf15067ecdd0734ca277ebf4629c46d62f89d732ab392752d3572dR6) but does not exist in the earlier proposed [solution](https://gist.github.com/colinhacks/c40519a6a050a99091862319151377ec). There might a reason (layered override?) for it but I am unable to find relevant explanation.

Original discussion in mantinedev/mantine#348.

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
natew pushed a commit to natew/next.js that referenced this pull request Feb 16, 2022
> Based on https://github.com/vercel/next.js/blob/v12.0.1/packages/next/server/render.tsx#L522-L532, this avoids the need for double page render. After investigation, the potential unneeded render has been introduced in the official [example](https://github.com/vercel/next.js/pull/20228/files#diff-3976da223aaf15067ecdd0734ca277ebf4629c46d62f89d732ab392752d3572dR6) but does not exist in the earlier proposed [solution](https://gist.github.com/colinhacks/c40519a6a050a99091862319151377ec). There might a reason (layered override?) for it but I am unable to find relevant explanation.

Original discussion in mantinedev/mantine#348.

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
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

Successfully merging this pull request may close these issues.

2 participants