AdamBrodzinski / meteor-flux-leaderboard

Flux Example with React & Meteor
131 stars 19 forks source link

SSR & Immutable Stores? #10

Open paulwehner opened 8 years ago

paulwehner commented 8 years ago

Was wondering where you are on the ToDo list? Are you including SSR soon and Immutable Stores?

rozzzly commented 8 years ago

I've been using altjs for my flux implementation. It has an iso package for serializing store state and sending that with the ssr render so client immediately has same state. However, it leaves a few things to be desired when integrated with meteor, so I'm merging it and the popular ReactLayout amid a few other cool things I won't go into atm. ImmutableJS is something I've been wanting to do for a while and it should pair nicely with my little project. With my current setup I believe the adoption will be very quick :) This repo helped me alot with getting started, ill be sure to make a fork/branch/pr with my stuffs in a few days.

AdamBrodzinski commented 8 years ago

@paulwehner I've stopped working on SSR since arunoda is working on it. I don't have time to add an immutable store for flux but I think that Redux stores can be checked with === because each time the reducer changes data a brand new object is created with a clone and new changes are added to that. I haven't had enough issues to check that though.

Using immutable.js with Alt or Redux will be the same as the guides for non-meteor apps.

Hope this helps!

@rozzzly that sounds great! I'll be more than happy to accept a PR. We'll prob have to put that on a new branch so it doesn't look overly complex for new flux users.

paulwehner commented 8 years ago

@AdamBrodzinski thanks for the update.

@rozzzly Sounds cool. Will look forward to when you publish it.

dbackeus commented 8 years ago

@rozzzly looking forward to seeing the PR :+1: