Things that are different from the first draft is:
API call to load user from server is implemented inside updateUser in SessionActions, because it is easier to handle multiple async functions. Other than that most of the API calls are done outside of store or actions
Some Actions are done inside Card or Screen Components, because I thought it is more efficient than passing down functions down as props for all components.
SessionStore deals with screenName and uri of the Navigator
Things still not done yet
FeedbackCard interaction is not working since I couldn't test it without the backend.
TodaysOfferRateCard
Already Connected Offer to open the corresponding conversation
resolve setState warning.
[warn][tid:com.facebook.React.JavaScript] 'Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the undefined component.'
Alt.js
to implement Flux architecture.updateUser
inSessionActions
, because it is easier to handle multiple async functions. Other than that most of the API calls are done outside of store or actionsSessionStore
deals withscreenName
anduri
of the NavigatorFeedbackCard
interaction is not working since I couldn't test it without the backend.TodaysOfferRateCard