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
I follow the code below to opt out HMR
if (import.meta.hot) { import.meta.accept(); import.meta.dispose(dispose); }
But it got error on type-checking:
Property 'accept' does not exist on type 'ImportMeta'.
Did you mean import.meta.hot.accept() & import.meta.hot.dispose(dispose)?
import.meta.hot.accept()
import.meta.hot.dispose(dispose)
The text was updated successfully, but these errors were encountered:
Hey! Yes this is definitely a typo. I'll update the Readme with the proper syntax. Thanks (and sorry for the delayed answer).
Sorry, something went wrong.
✏️ Fix typo in the readme regarding opting out of hmr (fix #10)
a3720a5
No branches or pull requests
I follow the code below to opt out HMR
But it got error on type-checking:
Did you mean
import.meta.hot.accept()
&import.meta.hot.dispose(dispose)
?The text was updated successfully, but these errors were encountered: