Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routed Email Application, using onEnter for route page loading and state clearing #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

naw
Copy link
Owner

@naw naw commented Dec 6, 2015

Rebasing a bunch of stuff in this repo.

This PR is just the code needed for the full routed email application example.

There will be several PR's into this branch to illustrate different approaches for fetching stale data and resetting instance-specific state.

This "original" branch illustrates:

  1. Fetch initial data for each route with onEnter calling page loaders.
  2. Update stale data directly from the initial action creators (i.e. every action creator needs to know which pieces of state can be affected and call the appropriate fetchers eagerly even if no components are listening.
  3. Reinitializes instance-specific state (i.e. the Counter) with onEnter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants