Muuri: SSR: document is not defined

Created on 8 Sep 2019  路  3Comments  路  Source: haltu/muuri

During SSR getting document is not defined, it would be great if we can make this global check.

enhancement question

All 3 comments

Yep, would be nice if Muuri played nice with SSR. I'm not fully sure what that would entail code-wise so if anyone wants to chime in (e.g. in the form of PR) that would be awesome.

The idea is to use https://www.npmjs.com/package/global instead of directly using window / document.

Thanks

Alrighty, sounds pretty straightforward if that's all what it takes. This would need tests too. Let's see if someone wants to take a stab at this at some point.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

realsoelynn picture realsoelynn  路  4Comments

stat92 picture stat92  路  6Comments

niklasramo picture niklasramo  路  7Comments

Sashkan picture Sashkan  路  3Comments

osamamaruf picture osamamaruf  路  4Comments