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

After going back from Detail to Home page, the title does not change. #27

Open
Bersaelor opened this issue Feb 7, 2023 · 0 comments
Open

Comments

@Bersaelor
Copy link

Bersaelor commented Feb 7, 2023

I have essentially 2 pages, on host.com/ and onhost.com/:detailId.

Now, basically the structure is like this:

const Home: Component = () => {
  return (
    <MetaProvider>
      <Title>Home</Title>
const Detail: Component = () => {

 return (
    <MetaProvider>
      <Title>{detailData()?.title || ''}</Title>

but the result is like this

Screen.Recording.2023-02-07.at.17.01.22.mov

Why does the detail page that is currently not rendered still overwrite the <Title> ?

This only happens when I programmatically do navigate('/', { resolve: false }), not when I use the browser back/forward buttons.

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