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
When using vue-snap with SSR in a Nuxt app, I noticed that the scroll behavior of Safari isn't smooth when using the arrow buttons. After doing some digging I see where the seamless-scroll-pollyfill is being included to pollyfill Safari, but it's being excluded from the SSR.
This makes sense as the pollyfill looks for the window object which won't exist on the server, but it raises the question what is the recommended way of patching Safari if you're using SSR? Would the right approach be to include the polyfill in the mounted() hook on the client side?
The text was updated successfully, but these errors were encountered:
When using
vue-snap
with SSR in a Nuxt app, I noticed that the scroll behavior of Safari isn't smooth when using the arrow buttons. After doing some digging I see where theseamless-scroll-pollyfill
is being included to pollyfill Safari, but it's being excluded from the SSR.This makes sense as the pollyfill looks for the
window
object which won't exist on the server, but it raises the question what is the recommended way of patching Safari if you're using SSR? Would the right approach be to include the polyfill in themounted()
hook on the client side?The text was updated successfully, but these errors were encountered: