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
Hello! Is there any way for the app to tell whether it's being prerendered? I know that in react-snap you can check with navigator.userAgent === 'ReactSnap', so I'm wondering if there's an equivalent for this prerenderer. Thanks :)
The text was updated successfully, but these errors were encountered:
I must admit I haven't used this project in a while myself, but I believe this is possible. You should have a global window.SNAPSHOT = true injected into the page when running.
Sometimes, it may be necessary to detect if you are running in the snapshot mode, so that you can serve up alternative content. To enable this, a global window.SNAPSHOT variable is set to true when taking the snapshot.
Hello! Is there any way for the app to tell whether it's being prerendered? I know that in
react-snap
you can check withnavigator.userAgent === 'ReactSnap'
, so I'm wondering if there's an equivalent for this prerenderer. Thanks :)The text was updated successfully, but these errors were encountered: