We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
export default class Example extends Component { constructor (props) { super(props) this.state = { loaded: false } } componentDidMount () { this.setState({ loaded: true }) } render () { let { loaded } = this.state return loaded ? <p>💕</p> : <p>Loading...</p> } }
Everything stays in loaded false state probably because componentDidMount never gets triggered, my folder structure is
Running on latest version of next.js
Is this behavior intended?
The text was updated successfully, but these errors were encountered:
It's not intended, and in fact Next.js should not be affecting that, can you provide a repo to reproduce it? I think something else it's wrong 🤔
Sorry, something went wrong.
I'll re-open when there's an example to reproduce.
Thanks, I'm trying to make the example as minimal code as possible 😢
But basically im using dotenv and also next-routes with some getInitialProps maybe its too much stuff in the mix??
No branches or pull requests
Everything stays in loaded false state probably because componentDidMount never gets triggered, my folder structure is
Running on latest version of next.js
Is this behavior intended?
The text was updated successfully, but these errors were encountered: