Skip to content

最近在学习,react, 刚好在b站看到的项目预览,功能非常全。感谢你的开源,嘿嘿 #3

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

Open
lxy157 opened this issue Sep 10, 2021 · 1 comment

Comments

@lxy157
Copy link

lxy157 commented Sep 10, 2021

./src/pages/discover/child-pages/songs/index.js

useEffect(() => {
dispatch(changeCurrentCategoryAction(albumName || cat))
}, [dispatch, cat, albumName])

把下面这里改一下

useEffect(() => {
const name = albumName || cat
if (name) {
dispatch(changeCurrentCategoryAction(name))
}
}, [dispatch, cat, albumName])

@LMM11231
Copy link

LMM11231 commented Dec 29, 2021

求教,react-router-dom用的也是5xx的版本却出现这个问题:A < Route > is only ever to be used as the child of < Routes > element, never rendered directly. Please wrap your < Route > in a < Routes >.

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

No branches or pull requests

2 participants