Skip to content

Hot reloading sub-components #294

@jonaswindey

Description

@jonaswindey

When you have a page test.js in /pages, only changes to that file will be hot-reloaded.

If you have a file child.js and load this from test.js, any changes to child.js will not be hot reloaded.

test.js

import React from 'react'
import Child from './child'

export default () => <div>hello <Child /></div>

child.js

import React from 'react'

export default () => <div>world</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions