Code Monkey home page Code Monkey logo

Comments (5)

icyJoseph avatar icyJoseph commented on June 19, 2024

I noticed that it doesn't happen when there is no loading.tsx file

This was gonna be my first question.

More easily visible with watch expressions:

Screen.Recording.2024-05-17.at.13.34.57.mov

document.title becomes ''

I know of another issue that also goes away when there is no loading.tsx... 🤔

from next.js.

Avik-creator avatar Avik-creator commented on June 19, 2024

I guess since you are using redirect.replace(), it might lead to changes in the DOM.

from next.js.

A1yks avatar A1yks commented on June 19, 2024

I guess since you are using redirect.replace(), it might lead to changes in the DOM.

Why should it?

from next.js.

Avik-creator avatar Avik-creator commented on June 19, 2024

@A1yks I am sorry for providing the wrong info, but as mentioned in the docs of Next.js:

https://nextjs.org/docs/app/building-your-application/optimizing/metadata

Screenshot 2024-05-22 at 10 17 00 PM

Similar thing is happening to you as well.

I have tested it with loading.js and without it.

More specifically you see the section mentioned above in the screenshot.

from next.js.

A1yks avatar A1yks commented on June 19, 2024

@Avik-creator Yes, it is expected for page.js to replace the title from layout.js. The problem is while the page.js is loading, the title becomes empty for a while, as you could see from the video I attached

from next.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.