DEV Community

Aks
Aks

Posted on

What is better for SSR in Vue.js Redux or Vuex?

What in your experience is better for server side rendering in Vue.js? Redux or Vue.js?

Top comments (6)

Collapse
 
samtsai profile image
Sam Tsai

As far as SSR Vue, I would recommend checking out Nuxt.js. It plays well with Vuex but it will be a departure from rxjs and redux, though principles will be similar.

Collapse
 
akanksha_9560 profile image
Aks

Yes but I need to pre fetch the data before rendering process, meaning my data needs to live outside view components. Vue.js documentation explains how to do that with vuex but is it possible to do it with Redux?

 
akanksha_9560 profile image
Aks

I like redux because I can use rxjs with it. Could you point me a direction where I can see an implementation of Redux with Vue.js used for SSR?

Thread Thread
 
ben profile image
Ben Halpern

I'm not super familiar with the latest best practices, but I'd check out github.com/airbnb/hypernova for a possible solution.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay