goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 322 forks source link

Init data while navigate with react-router #660

Open bsdo64 opened 8 years ago

bsdo64 commented 8 years ago

I'm using react router, normalizr, immutable now.

When user navigate route, react router listener fire init action all store data from api server by ajax.

After ajax data call success, normalize to domain store data (POSTS, USERS, COMMENTS, CATEGORIES...) with normalizr and setState each domain data to domain store (which are listening init action)

But the problem is with domain stores and ui stores, these count more than 30~ and each containers listening the stores re-render too many more than 1sec.

Is it correct way init data with alt?? I'm not using isomorphic app. Just client app