goatslacker / goatslacker/alt

Init data while navigate with react-router

Open
#660 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.