airyrooms / maleo.js

Un-opinionated Universal Rendering Javascript Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Handling client object on server side render `window`, `global` & `document` is not defined

rakasiwi23 opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Mac OSX High Sierra]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

I think we shouldn't handle this case, since it is expected to have undefined window and document value on server as they are browser objects.
I'm closing this issue.
Thank you!

commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.