'Issues with first time visitors to a React single page site not getting rendered pages
We have built a rather large React site and we are having issues where if someone finds their way to an interior page, and they have never been to the site before, the site has to download all of the data to render something and since they have not been there before, they get an error rather than it just downloading stuff.
To get around that we are forwarding first time users to the /search page which triggers the download and all works, except if you wanted them to land, and see, the page they originally were sent to, something like /search/dave/
How is this supposed to work? How do you identify and force first time visitors to grab the required stuff to get the page to load?
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
