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

Add typeof window checks for SSR #277

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

MarcPorciuncula
Copy link

@MarcPorciuncula MarcPorciuncula commented Mar 10, 2017

Hi,

I've added checks for the window global before any accesses to window or document so that Keen-UI can be used for SSR (and nuxt.js).

UiTooltip.vue and UiPopover.vue have a conditional require because tether-drop has a side effect which accesses document on require, and tether-tooltip also depends on tether-drop.

I used requires instead of import()s to avoid having to deal with async.

Would close #261

@MarcPorciuncula
Copy link
Author

MarcPorciuncula commented Apr 25, 2017 via email

@hackuun
Copy link

hackuun commented Feb 7, 2018

Does SSR support are present in current release?

@JosephusPaye
Copy link
Owner

Currently Keen UI has no support for SSR.

Full SSR support will be Keen UI v2.

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

Successfully merging this pull request may close these issues.

Compatiblity with nuxtjs / SSR?
3 participants