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

fix: add conditional render of the page title #1287

Merged
merged 2 commits into from
May 30, 2024

Conversation

Dimeliora
Copy link
Contributor

Не рендерить заголовок страницы в html-шаблоне при гидратации. Этим избегаем дублирования элемента title на странице, так как мета-информация из pageMetaData встраивается в шаблон на bff-сервере.

@Dimeliora Dimeliora requested a review from kobezzza May 29, 2024 10:24
< title
{title}
- if !config.webpack.hydration()
< title
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А для других мета заголовков такая проверка не нужна?

@Dimeliora Dimeliora requested a review from kobezzza May 29, 2024 11:56
@Dimeliora Dimeliora merged commit 1f7e519 into v4-new-init May 30, 2024
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