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
export default function Home() { useEffect(() => { console.log(1); // will log twice }, []) }
The text was updated successfully, but these errors were encountered:
调试发现跟这行代码有关系 https://github.com/raxjs/rax-app/blob/master/packages/plugin-rax-router/src/runtime/KeepAliveRouter.tsx#L83 , 包了一层 Fragment 就会导致组件重新渲染。把 Fragment 换成 div 或者去掉就不会重新渲染了。
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: