Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Conversation

@rhwilr
Copy link
Contributor

@rhwilr rhwilr commented Apr 14, 2017

This PR fixes a server crash when using this plugin with vue-router-sync. #82

When using these two plugins with SSR, the server crashes with a "document is not defined" Exception.
This exception is thrown because the destroyed method is called when handing the page over from the server to the client.
By not calling the refresh method on the server side we can avoid this exception and save render-time by not calling a method that has no effect when executed on the server.

@atinux
Copy link
Member

atinux commented May 12, 2017

Thanks @rhwilr

Sorry for the delay

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants