Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sets): check for window to avoid SSR errors #511

Merged
merged 1 commit into from
Sep 12, 2020
Merged

fix(sets): check for window to avoid SSR errors #511

merged 1 commit into from
Sep 12, 2020

Conversation

TheAlexLichter
Copy link
Contributor

@TheAlexLichter TheAlexLichter commented Sep 12, 2020

Hey 👋🏻

The new version unfortunately breaks when using the composition API on server-side because of a missing check for typeof window !== 'undefined'.

image

This PR should add the check and avoid SSR errors 😋

@antfu antfu merged commit 9ea7230 into vuejs:master Sep 12, 2020
@TheAlexLichter TheAlexLichter deleted the patch-1 branch September 12, 2020 07:09
@antfu
Copy link
Member

antfu commented Sep 12, 2020

Fix released in 1.0.0-beta.13, thanks for catching it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants