Can prerender-spa-plugin be used to preload the login registration page?

< H1 > problems I encountered when using prerender-spa-plugin in my react project: < / H1 >

when I just preload the home page, the home page renders quickly, but there are five routes in my project, and the rest of the routes need to be logged in before they can be entered. After entering, users are allowed to refresh, hoping to load normally. It"s actually not as expected, because when both refreshed with the same index.html, user, the extracted preloaded js and css are reexecuted, and what the user sees is the login page-> current route. I do not want to reload the new html, on the current route because this will cause my facet to be refreshed, including routing to another page will also give me a new request for a new html,reduce to be emptied.

< H1 > what I can think of is to execute only some of the parameters provided in the js and css, trial documents extracted from me by prerender-spa-plugin on the home page (login registration page), but I can"t do it. Do you have any solutions? < / H1 > < H2 > and when I preload multiple routes, I add"/"to all routes except the home page, and there is a unexpected token"< "error? And why is that? < / H2 >

I have seen some issue
https://github.com/chrisvfrit.

on github
Mar.29,2021
Menu