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
Steps to reproduce:
yarn
npm start
src/App.tsx
Logo
(Strangely, after saving the file a third time, the duplicate logos disappear, and the app looks right again.)
The text was updated successfully, but these errors were encountered:
According to this thread the code below works for me:
main.tsx
import { app } from 'hyperapp' import { actions, state, view } from '@app/app' import moisturize from 'hyperapp-moisturize' function makeHotReloader (updateApp) { return (fileName, updateAs) => { return module.hot.accept(`./${fileName}`, () => { import(`./${fileName}?${Date.now()}`) .then((imported) => { updateApp({ [updateAs]: imported.default }) }) }) } } const main = moisturize(app)(state, actions, view, document.body) const hotReloader = makeHotReloader(main.updateApp) hotReloader('state.js', 'newState') hotReloader('actions.js', 'newActions') hotReloader('view.js', 'newView')
Example taken from okwolf/srvs
Sorry, something went wrong.
joseluisq
No branches or pull requests
Steps to reproduce:
yarn
andnpm start
src/App.tsx
Logo
element) and save fileLogo
element back at line 13 and save file(Strangely, after saving the file a third time, the duplicate logos disappear, and the app looks right again.)
The text was updated successfully, but these errors were encountered: