Disable hydration in Sapper

六月ゝ 毕业季﹏ 提交于 2021-01-29 10:15:29

问题


I was testing Sapper and got stuck with complex TweenMax page transitions I'm used to do when working with BarbaJS or HighwayJS, so I'm wondering is there's a way to disable hydration in Sapper so that I can only have the SSR website I can bend to my will.

If there's a way, that would be great.


回答1:


Sure — just delete the code in src/client.js that starts the app



来源:https://stackoverflow.com/questions/58641735/disable-hydration-in-sapper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!