-
Notifications
You must be signed in to change notification settings - Fork 394
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
Question: How to only have preloaded html for certain routes #112
Comments
From what you described the issue is flash of Question: do you have a link to |
You're right, there is no As for why my search page isn't working, one big issue is that I am using https://github.com/contra/react-responsive to adjust which react components/structure to render based on the browser's width. Unfortunately that means that the pre-rendered version might not match up w/ the device that ends up viewing the content. On my hompage I switched to using pure-css based media queries so that the content is identical for both mobile and desktop devices, and I hope that I can do the same on my search url. There also might be another issue with dynamic import statements, but I haven't dived into that yet. There are also several other routes, like account-settings views and the like that I just don't want to pre-render. |
Want to remind you there is a section in Readme about it. |
I was able to use 200.html as a fallback and everything is working. Thanks! |
I have a
create-react-app
-based webapp with several different routes, including my homepage at/
and a search page at/search
. If I setupreact-snap
withcrawl: false
, andinclude: ["/"]
, then how do I prevent my homepage content from flashing on the screen when a user tries to go directly to a/search
url? Thanks.The text was updated successfully, but these errors were encountered: