You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find @vitejs/[email protected] doesn't refresh the page any more when the following condition is met:
You have an App.jsx which is expected to work with react refresh
// Cond 1: You have another react-component like function definition.
const AAA = (props) => {
return null;
};
// Cond 2: You wrap your exported component with a higher-order component, which takes the first parameter for extra info.
function wrapper(x, f) {
return f;
}
// Cond 3: You wrap your exported component with that wrapper.
export const App = wrapper({}, () => {
return <div>122223</div>;
});
Now, whatever you edit this file to, the refresh doesn't work anymore.
Describe the bug
I find
@vitejs/[email protected]
doesn't refresh the page any more when the following condition is met:You have an
App.jsx
which is expected to work with react refreshNow, whatever you edit this file to, the refresh doesn't work anymore.
Reproduction
https://stackblitz.com/edit/vite-dbowdc?file=App.jsx
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: