Skip to content
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

Fix Hot Module Reload #2321

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Fix Hot Module Reload #2321

merged 1 commit into from
Jul 18, 2024

Conversation

nguyentvan7
Copy link
Collaborator

@nguyentvan7 nguyentvan7 commented Jul 18, 2024

Describe your changes

Fix hot module reload.
Hook files should be with .ts, since they are not exporting a component.
MainStatSelectionCard.tsx was exporting a const, not just a component. No one was using the const anyways.
https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports

shows as this in terminal
image

Issue or discord link

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@nguyentvan7 nguyentvan7 requested a review from frzyc July 18, 2024 00:28
Copy link
Contributor

github-actions bot commented Jul 18, 2024

[frontend] [Thu Jul 18 00:31:48 UTC 2024] - Deployed 6862cd9 to https://genshin-optimizer-prs.github.io/pr/2321/frontend (Takes 3-5 minutes after this completes to be available)

[Thu Jul 18 02:08:09 UTC 2024] - Deleted deployment

@nguyentvan7 nguyentvan7 merged commit 729b8e9 into master Jul 18, 2024
6 checks passed
@nguyentvan7 nguyentvan7 deleted the van/go/fixHMR branch July 18, 2024 02:07
@nguyentvan7 nguyentvan7 mentioned this pull request Oct 12, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants