meteor-flux-leaderboard icon indicating copy to clipboard operation
meteor-flux-leaderboard copied to clipboard

SSR & Immutable Stores?

Open paulwehner opened this issue 9 years ago • 4 comments

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

paulwehner avatar Oct 30 '15 11:10 paulwehner

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.

rozzzly avatar Oct 30 '15 16:10 rozzzly

@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.

AdamBrodzinski avatar Oct 30 '15 21:10 AdamBrodzinski

@AdamBrodzinski thanks for the update.

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

paulwehner avatar Oct 31 '15 02:10 paulwehner

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

dbackeus avatar Oct 31 '15 10:10 dbackeus