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: title not updating when not focused #6

Merged
merged 1 commit into from
May 20, 2023
Merged

Conversation

scarf005
Copy link
Owner

@scarf005 scarf005 commented May 19, 2023

Reason

    {/* (optional) set to false to not use requestAnimationFrame and instead update the DOM as soon as possible.
        Useful if you want to update the title when the tab is out of focus 
    */}
    defer={false}

defer is required to update title when tab is out of focus.

nfl/react-helmet#315

Solution

set defer to false

@scarf005 scarf005 marked this pull request as draft May 19, 2023 02:43
@scarf005 scarf005 marked this pull request as ready for review May 20, 2023 22:58
@scarf005 scarf005 merged commit 38c69ed into main May 20, 2023
@scarf005 scarf005 deleted the fix-title-update branch May 20, 2023 23:01
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.

1 participant