Closed nihiluis closed 5 years ago
ok, the loading... from next still errs me, but the loading issue came from using href on instead of route.
The loading... is from the dynamic import. I just added this
const DynamicAuth = dynamic(() => import("../src/components/auth/Auth"), {
ssr: false,
loading: () => <p></p>
})
Hi, I'm having long loading times on pages which are wrapped with
withRouter
.When I click a , I have to wait for 1s for my stuff to appear while on the top left corner I have a "loading..." message, otherwise completely blank.
It's from something like this
How come? Is this related to next-routes or next itself? Or am I having ill code?
I'm using dynamic with no ssr and do several api calls (on mount, which should not prolong the initial dom loading).
routes.js
user.tsx
UserView.tsx