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
It's simple routing with preloader till any new page load.
dev server and build without prerendering working, but I want to have structure like this prerendered.
If we try to build structure above there is "Template execution failed: [object Promise]" error.
I've tried:
-preact-async-route and AsyncRoute component. Current version asks to use lazy/suspense. With AsyncRoute I was getting errors too.
-"async!" flag in imports - It didn't help much either - there are were errors as well.
-moving pages to "routes" folder doesn't help to split at all - I've got the same size of chunks.
I parsed all documentation I found and still have no clue what would be the "right" way to implement it.
The text was updated successfully, but these errors were encountered:
Hey guys, I want to have structure like this:
App.js:
It's simple routing with preloader till any new page load.
dev server and build without prerendering working, but I want to have structure like this prerendered.
If we try to build structure above there is "Template execution failed: [object Promise]" error.
I've tried:
-preact-async-route and AsyncRoute component. Current version asks to use lazy/suspense. With AsyncRoute I was getting errors too.
-"async!" flag in imports - It didn't help much either - there are were errors as well.
-moving pages to "routes" folder doesn't help to split at all - I've got the same size of chunks.
I parsed all documentation I found and still have no clue what would be the "right" way to implement it.
The text was updated successfully, but these errors were encountered: