Giter Club home page Giter Club logo

Comments (6)

LeoSonnekus avatar LeoSonnekus commented on August 15, 2024 1

Hey thanks for the response apologies for the late reply (working on a lot at the moment),

Basically if I put a basic page into my /pages directory that looks like this

import React from 'react'

function login() {


    return (
            <div>
                LOGIN?
            </div>
    )
}
export default login

on a fresh Next JS project this would show a blank page with the text LOGIN? and nothing else,

When I put this in my pages directory on a Hull project I see the text for 1-2 seconds then everything disappears.

Do you know why this might be?

Thanks for the help :)

from hull.

LeoSonnekus avatar LeoSonnekus commented on August 15, 2024 1

No worries, thanks for the info I'll do more of my own investigating and see if there's something I can find. Cheers!

from hull.

ndimatteo avatar ndimatteo commented on August 15, 2024

Hey again @LeoSonnekus!

I'd have to see your new page code to really provide some insight here, but generally speaking you will still need to pass some amount of data if you are wanting things like the global header, footer, and cart to show, even if the actual page content is not coming from Sanity.

Happy to take a look at your page code if you have something specific you're trying to do that isn't working as expected!

from hull.

LeoSonnekus avatar LeoSonnekus commented on August 15, 2024

An update on this,

When I add a component with only site data (for header and footer and cart details etc.) I don't get this issue, which makes sense but I'd be interested to know why this might be happening without a Layout defined purely so I can understand the tech better.

Thanks for the time.

from hull.

ndimatteo avatar ndimatteo commented on August 15, 2024

Hey @LeoSonnekus that's very odd. I tested locally and am not seeing the text disappear after 1-2 seconds. I'm wondering if something else is going on in your setup.

from hull.

ndimatteo avatar ndimatteo commented on August 15, 2024

@LeoSonnekus closing this for now, but feel free to open a new issue if you find something!

from hull.

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.