vue-masonry-css icon indicating copy to clipboard operation
vue-masonry-css copied to clipboard

Just wanna say thanks!

Open davestewart opened this issue 4 years ago • 4 comments

I was using the Vue Isotope package and it wasn't playing well with SSR, then for some reason I found this and... boom; it just works.

I almost wasn't going to use grid packing, but now I'm going to stick with it.

Great job! And thank you.

davestewart avatar Mar 03 '21 19:03 davestewart

Can you share a code sample of how you have this set up for SSR? Thank you.

dosstx avatar Aug 31 '21 09:08 dosstx

Hey @dosstx - I don't think I did anything special, because it's CSS it doesn't reference window or such like.

This is it running in VuePress:

image

It's been a while since I looked at this, but I quickly scanned through the source I didn't see any client-only or such like.

Note that I am pre-rendering all pages.

davestewart avatar Aug 31 '21 15:08 davestewart

@davestewart Thanks! Doesn't pre-rendering basically build the pages before deployment? If so, that is different than SSR because with SSR the pages are dynamically rendered as the server requests them ("Server-Side Rendering/SSR"). Thus, I can see why the layout works fine for you. Vuepress is a static-site generator (non-SSR). In your case, that plugin should work as-is. Unless I am mistaken?

dosstx avatar Aug 31 '21 16:08 dosstx

Doesn't pre-rendering basically build the pages before deployment

Yup!

Vuepress is a static-site generator (non-SSR). In your case, that plugin should work as-is

It is. Sorry I can't help!

davestewart avatar Aug 31 '21 16:08 davestewart