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
大佬,使用CacheSwitch包住路由不能触发Suspense的fallback
<Suspense fallback={<Loading />}> <CacheSwitch> {routes.map(({ path, ...props }: RouteProps) => ( <Route key={`rt${path}`} path={path} {...props} exact /> ))} {cacheRoutes.map(({ path, ...props }: CacheRouteProps) => ( <CacheRoute className="cache-route" key={`rt${path}`} path={path} {...props} exact /> ))} <Redirect from="/*" to="/error" /> </CacheSwitch> </Suspense>
The text was updated successfully, but these errors were encountered:
有用到 React.lazy 吗,suspense 需要配合这个 api 使用
Sorry, something went wrong.
有用到的,用react-router-dom就能正常触发。
请问解决这个问题了吗
No branches or pull requests
大佬,使用CacheSwitch包住路由不能触发Suspense的fallback
The text was updated successfully, but these errors were encountered: