Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Hot Reload not working properly #1989

Closed
Sadam-MCA opened this issue Aug 5, 2022 · 1 comment
Closed

Hot Reload not working properly #1989

Sadam-MCA opened this issue Aug 5, 2022 · 1 comment

Comments

@Sadam-MCA
Copy link

No description provided.

@koistya
Copy link
Member

koistya commented Aug 5, 2022

@Sadam-MCA I can only reproduce it if I try using anonymous functions when declaring React components:

// GOOD
export function Example(): JSX.Element {
  return <Box>...</Box>;
}

-- vs --

// BAD
export const Example: React.FC = () => {
  return <Box>...</Box>;
};

If you're using anonymous function, consider giving them names, otherwise you may bump into issues like this one. This particular issue is not related to the starter kit but Fast Refresh limitations I believe. Feel free to re-open if Hot Reloading (Fast Refresh) is not working under some other condition.

Learn more

@koistya koistya closed this as completed Aug 5, 2022
@kriasoft kriasoft locked and limited conversation to collaborators Aug 5, 2022
@koistya koistya converted this issue into discussion #1991 Aug 5, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants